There is a form that adds an entry to the database, but when outputting html from the database, tags are not processed, that is, the text is as follows:

 <h1>Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.</h1> 

How to enable tag processing?

  • 2
    And what should it be at the conclusion? - Zhukov Roman
  • At the output, it should be processed with the h1 tag, and now the tags are displayed in plain text - phan
  • one
    Are the tags themselves not just plain text? I'm going to tell the boys. - Zhukov Roman
  • It is necessary that when outputting from a database, the text, for example, enclosed in the b tag becomes bold, and now the page simply displays <pre> <b> text </ b> </ pre> - phan Mar'13
  • Well, then the PHP code in the studio. - Zhukov Roman

1 answer 1

During output, process the output of the function: htmlspecialchars_decode . Apparently your framework automatically converts html characters when added.

  • Thanks, works - phan