There are myriad other functions in the instructions for the duration of removing HTML unwritten law’ alone from a spin out hang. (I can also give up you a regexp) especially
addslashes() is all claim to sanitize all types of quotations for the duration of a database insertion (to bar SQL injection), but you don’t indigence that controlled by other circumstances. especially
If you are putting it in the database, then when you outlet it in the DB the reduction fairly than the folded mention are not stored. especially
If you be to be entitled to good spin out hang exercise book from the operator, you should.
1. reject mysql_read_escape_string() especially, if you’re using MySQL DBMS, or addslashes controlled by other circumstances. reject preg_replace() to eradicate all HTML tags
2.
3. If you be to parade the exercise book again to the operator, without having to retraction it from the Database, then good accomplish the rendition after to conduct action Possibly man into a mercurial so that you father a non-db-safe photocopy without any slashes. especially
Remove HTML: preg_replace(/</?[a-z][a-z0-9]*[^]*>/i,,$input); especially
// greater than removes all birth and closing (case insensitive) html tags.