Skip to content
Discussion options

You must be logged in to vote

The safe method does not unescape the escaped HTML. It is used to output HTML as it is (meaning do not escape it).

What you are looking for is an unescape method. You can use https://www.npmjs.com/package/he package and use it to escape and unescape both.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ekimkael
Comment options

Answer selected by ekimkael
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants