Posted by Vladdy on 06/29/05 04:28
diablo wrote:
> hi
>
> i have seen several examples (blogs in particular)
>
> http://www.lastkissed.com/?p=7#comments
>
> where placing html into a textarea seems to be stripped out on the other
> side. and yet retains some...
>
> for example the above - i placed a </table> into the comment and submitted -
> the <blockquote> came out as a block quote but the </table> seems to have
> dissappeared.
>
> is there a way i can do a similar box - ie so that if someone puts html into
> it - it is stripped out?
>
> thanks for help
>
> Diablo
>
>
When done properly, the form data filtering is performed server side
using available scripting language.
PHP has some HTML filtering functions built-in.
You can easily write a function utilizing the regular expressions to do
the job.
--
Vladdy
http://www.klproductions.com
[Back to original message]
|