I am storing formatted string in database using PHP. And displaying that string in td of HTML table. My sample text is like-
<font color="#0033CC"><b>water </b>releasing<i> H<sub>3</sub>O<sup>+</sup></i> ions; </font>
When displaying in td, it just displaying this raw data instead of formatted text. I have viewed the source in browser and found below data.
<td><font color="#0033CC"><b>water </b>releasing<i> H<sub>3</sub>O<sup>+</sup></i> ions; </font></td>`
That means " is replaced with "
> is replaced with >
and so on.
Is there any built in approach in PHP to avoid this scenario and displaying formatted text?
Thanks in advance!