Search code examples
node.jsckeditorpug

Delete Html entities or replace tag


when i display ckeditor text the html tags are also displayed. how can a i show only the text? i'm getting this:

<b>Paragraph</b>

Paragraph

I use Jade template and node. It's possible to delete Tag before save in database ? or remove tag after ?

Thanks.


Solution

  • I found a solution. Juste use !{value} instead of #{value} with Jade template to decode html entities. value contains html entities.