sporter
10-20-2005, 07:14 AM
On my site people may use some html code to enter into a textarea. However I don't wanna let them display images and links to other pages.
To be exactly, I only want them to use:
<P> & </P>
<EM> & </EM>
<U> & </U>
<STRONG> & </STRONG>
<P align=center> & </P>
<P align=left> & </P>
<P align=right> & </P>
<P align=justify> & </P>
So I want to delete all other html tags & javascript, or anything else they can put in. What lines do I need to make sure they only use the tags above and for the rest plain text ?
To be exactly, I only want them to use:
<P> & </P>
<EM> & </EM>
<U> & </U>
<STRONG> & </STRONG>
<P align=center> & </P>
<P align=left> & </P>
<P align=right> & </P>
<P align=justify> & </P>
So I want to delete all other html tags & javascript, or anything else they can put in. What lines do I need to make sure they only use the tags above and for the rest plain text ?