jqte text editor is changing html tags

828 Views Asked by At

I am using jqte as a text editor with my CodeIgniter application however when I save the content it's converting the tags which I don't want it to do.

For example, I would like it like this:

<p>Lorum ipsum<br />dolor simit</p>

but instead it is changing to this:

&lt;p&gt;Lorum ipsum&lt;br&gt;dolor simit&lt;p&gt;

How do I convert it back?

1

There are 1 best solutions below

0
On

In php you can use

<?php
 echo htmlspecialchars_decode($your_string);
?>