Issues with strip_tags(fixed)
Posted: Wed Jul 05, 2006 7:10 am
I was under the assumption that strip_tags would remove all tags except for the ones that are specified safe.
I setup the following strip_tags command:
$inputaboutme is a textarea.
When I put the following text into the textarea:
It outputs this after processing:
Only thing I saw change was the quotes commented out for echo'ing.
Help?
*EDIT*
Corrected typo..
I setup the following strip_tags command:
Code: Select all
$inputaboutme=strip_tags($inputaboutme, '<a><b><i><u>');When I put the following text into the textarea:
Code: Select all
<html>
<body background="http://www.cybergrunge.com/bg3.jpg">
<b>Testing 123</b>
</body>
</html>Code: Select all
<html>
<body background=\"http://www.cybergrunge.com/bg3.jpg\">
<b>Testing 123</b>
</body>
</html>Help?
*EDIT*
Corrected typo..