[PHP] strip html
Is there a function to strip html from a string? This function seems to stip out everything between the tags too, no? http://www.php.net/manual/en/function.strip-tags.php John -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] strip HTML
Hello All, How would I strip all HTML before the info in inserted to MySQL? The info is sent with a form. We Have one person that insist on using HTML. TIA Gary -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Strip HTML codes from a string?
Ok, ignore me. I'm an idiot.. I just found the striptags() fucntion. - John Vanderbeck - Admin, GameDesign - Original Message - From: "John Vanderbeck" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, February 17, 2001 12:33 PM Subject: [PHP] Strip HTML codes from a string? > I'm really crappy with regex's, and I can't find a good tutorial on using > them , and all the syntaxes. What I need to do is strip all HTML tags from > a string. > > This is from a form, where a user can submit comments on things, but I need > to strip the HTML out, in case anyone tries to abuse it :) > > - John Vanderbeck > - Admin, GameDesign > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Strip HTML codes from a string?
I'm really crappy with regex's, and I can't find a good tutorial on using them , and all the syntaxes. What I need to do is strip all HTML tags from a string. This is from a form, where a user can submit comments on things, but I need to strip the HTML out, in case anyone tries to abuse it :) - John Vanderbeck - Admin, GameDesign -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]