Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
benmmurphy
· 13y ago · 0 comments
If you put it in a script tag you need to ensure you escape </script>. Though, it is probably safer to escape <, >, and & just to be sure.
Comments
[–]
fforw
13y ago
The </script> issue is why JSON and Javascript both allow you to escape the slash character with a backslash.
So just going <\/script> is enough.