Issue With strip_tags (solved)
Posted: Wed Aug 30, 2006 2:35 pm
Here's the code:
Here's my problem.
The html gets input by the user, let's say a simple link:
After strip_tags gets done with it, it looks like this:
Then it get's saved..... fine... no big deal.... but then the user goes back and makes some changes, the strip_tags gets run on it again.....
and again....
Anyway I can keep the single and double quotes from getting escaped... or only have it escape them once?
Code: Select all
$inputaboutme=strip_tags($inputaboutme, '<b><a><i><br><center><td><tr><table><caption><p><strike><small>');The html gets input by the user, let's say a simple link:
Code: Select all
<a href="http://www.blahblahlblah.com">Code: Select all
<a href=\"http://www.blahblahlblah.com\">Code: Select all
<a href=\\"http://www.blahblahlblah.com\\">Code: Select all
<a href=\\\"http://www.blahblahlblah.com\\\">