Run ECHO without interpreting HTML

3

I have a value in the mysql database that contains some html commands like:

  

<b>Olá</b>

     

<br>

     

Other ...

I need to display the value using <?php echo $row_rs['original']; ?> to appear exactly like this in BD, without the interpretation of HTML.

Instead of appearing like this:

  

Hello

appears like this:

  

<b>Olá</b>

Thank you.

    
asked by anonymous 18.11.2015 / 18:47

1 answer

11

Use htmlentities .

Eg: <?php echo htmlentities($row_rs['original']); ?>

    
18.11.2015 / 18:50