On my site there are many fields with which you can write text to the database. So, so that users do not htmlspecialchars down any script used by htmlspecialchars . But htmlspecialchars also displays as text. And it is necessary that <br> and other types of discontinuity (for example, \n ) work, and not be output as text.
How can this be implemented?