-
Notifications
You must be signed in to change notification settings - Fork 479
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
Html entities are decoded in array but not in string #449
Comments
the first name does htmlEncoding on htmlEntities so you get double encoding as another example:
will return the second name as It just so happens that |
Shouldn't it escape the result of the |
…ngified representation contains HTML. This prevents a potential XSS attack. Closes linkedin#449
…ngified representation contains HTML. This prevents a potential XSS attack. Closes linkedin#449
I just stumbled upon this issue and I honestly couldn't understand why this happens. Let's say you have a template like
and the data to render is
If we render it like so, the first li will have the value
Test & more test
, but the second one will renderAnother test & testing stuff
. Why do the two behave differently? In my head they should behave the same way, but I can't for the life of me find what causes that difference.You can see it in action in this fiddle.
The text was updated successfully, but these errors were encountered: