How to escape html tags in PHP?
/* EXAMPLE: <p>Bed & Breakfast</p> --> <p>Bed & Breakfast</p> & & " " (unless ENT_NOQUOTES is set) ' ' or ' (ENT_QUOTES must be set) < < > > */ <?php $new = htmlspecialchars("<a href='test'>Test</a>", ENT_QUOTES); echo $new; // <a href='test'>Test</a> ?>
Curly hair, very fair, please share 🙂
Related
$ escape character php, add escape characters to string php, change special characters to html entities in php, define escape character php, echo escape characters php, esc special caracter php, escape character in php, escape character php, escape characters in php, escape characters in string php, escape characters php, escape chars php, escape html attr php, escape html entities php, escape html php, escape html tag php, escape html tags in php, escape special character in string php, escape special character php, escape special characters in json string php, escape special characters in php, escape string to html php, how to add special character in text in php, how to change special characters programmatically in php, how to convert html special characters code in php, how to escape html tags in php, how to escape special characters in php, how to escape special characters in url php, how to handle special characters when display text in page using php, how to use special characters from string in php, html escape php, html special char php, html special characters code in php, html special characters in php, html special characters php, html special characters php function, html special characters() in php, html special chars function php, html special chars into html - php, json special characters escape php, mysql escape special characters php, php best way to escape html and still print html, php code print special characters, php echo how to escape character, php echo html special characters, php echo special characters, php encode special characters in string, php escape characters, php escape html, php escape html code, php escape html special chars, php escape html tags, php escape json special characters, php escape special characters, php escape special characters accents, php escape special characters in string, php escape string for html, php function special characters, php function to escape special characters mysql, php html special character, php html special chars, php json remove escape characters, php problem with special characters, php reglar experssion escape special characters, php remove escape characters from string, php remove html tags, php special characters, php special characters in string, php string escape special characters, php support special characters, php tag to manage special characters, remove escape characters from string in php, remove escape characters from string php, replace escape character in php, special char need escape php, special char php, special character php, special characters in php, string escape special characters php, unicode escape php, use escape character php