Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Having a < in angular expression {{}} Crashes the plugin #529

Closed
trumbun opened this issue Mar 3, 2016 · 2 comments
Closed

Having a < in angular expression {{}} Crashes the plugin #529

trumbun opened this issue Mar 3, 2016 · 2 comments

Comments

@trumbun
Copy link

trumbun commented Mar 3, 2016

Hi,
When having a < inside a angular express {{a.length < 3 ? ' Less than 3' : 'More than 2'}} inside the html the puling crashes. If that express is inside an attribute it works.

Changing the < to > in the expression works

@trumbun trumbun changed the title Having a < in angular expression {{}} Crashes the dll Having a < in angular expression {{}} Crashes the plugin Mar 3, 2016
@alexlamsl
Copy link
Collaborator

< instead normal text content is not standard HTML - use &lt; instead.

Alternatively, you can use ignoreCustomFragments on {{...}}.

@trumbun
Copy link
Author

trumbun commented Mar 4, 2016

Thanks I added the following command ignoreCustomFragments: [/{{.*?}}/]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants