You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Therefore user may thinks (as I thought) that text he passes will be escaped but it will not and this can lead to bad things.
Is this by design? My thought that everything should be escaped by default. And if you want html you can call html method by hand.
No warning in documentation is found.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Today I discovered that elements you create with
html()
helper are not properly escaped.For example documentation says that second argument is
text
:But if you look at source code you see that method calls
html
method onA
:Therefore user may thinks (as I thought) that text he passes will be escaped but it will not and this can lead to bad things.
Is this by design? My thought that everything should be escaped by default. And if you want html you can call
html
method by hand.No warning in documentation is found.
Beta Was this translation helpful? Give feedback.
All reactions