Use Htmlpurifier Filter input can not & escape to &
Today operation Classmate said backstage title appeared some garbled shape such as & and so on. I looked at it because the project used the Htmlpurifier third-party package, the initial guess is that the package did some escaping ... The search on the internet did not find it, only in its official forum to find someone to discuss the issue:
Https://stackoverflow.com/questions/40463606/html-purifier-convert-amp
http://htmlpurifier.org/phorum/read.php?3,4655
http://htmlpurifier.org/phorum/read.php?3,7120,7120
Want to store native & instead of & read the following answer: basically it is not recommended. So here I add a PHP function to the last display Htmlspecialchars_decode, directly & back to &
Complement Link: HTML character entity (Character entities), Escape string (Escape Sequence)
http://114.xixik.com/character/
Use Htmlpurifier Filter input can not & escape to &