Actually, I am writing a forum for myself and a question arose.
Which is better to use the functions of working with text to make html tags and constructions like " <b onclick="alert('сайт хакнут')">dsfsdfsdf</b> ". I would like to know the better way to use stripslashes, addslashes, htmlspecialchars

  • to avoid this, you need the striptags() function. - etki

1 answer 1

All in some cases, usually htmlspecialchars are usually better, or with slashes. If you want to write a powerful forum, write in Skype (Manitikyl), maybe with help, I wrote several forums myself, I know a little about architecture / structure