Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
anonfunction
· 13y ago · 0 comments
Working on it, any tips to keep entity encoding in handlebars without the triple stash?
Comments
[–]
octatone2
13y ago
Don't encode entities on the server side if you are using handlebars, it will do that for you (that's the point of using {{}} it will make all user input "safe").
[–]
Sephr
13y ago
Don't encode entities, just use the DOM (append text nodes).