Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
pigbearpig
· 4y ago · 0 comments
That seems pretty unsafe without running it through some sanitizer. Trying not to judge too hard, but I would be concerned about the implementation of showHtmlPage by the same author that didn't handle non-json responses.
Comments
[–]
ValCanBuild
4y ago
Hey, OP here - I'm open to advice about how best to handle this! I'm currently just opening a new window and writing the HTML to it.
What's the safest way to handle this? Open it in an iframe?