Adonis v5 not outputing HTML Tags #4353
-
Hello guys, I'm using Adonisjs version 5. I escaped text from a WYSIWYG so I have this saved in my database: When I render I use the safe method but it is rendering this: Can someone help me? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The What you are looking for is an unescape method. You can use https://www.npmjs.com/package/he package and use it to |
Beta Was this translation helpful? Give feedback.
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
andunescape
both.