If I want to remove all the HTML code of my text, but still having an understandable text, which method should I use?
Should I use HTML Purifier with $Configuracion->set('HTML.Allowed', ''); or another way?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
HTML Purifier has a notable bug for the “convert HTML to plain text” case, where block-level elements may lose the spaces between them when all the tags are removed. HTML Purifier wasn’t designed for this use case.