Hey guys, I am designing a site that enables users to put rich text - images, smileys, lnks and some HTML tags.

Now I have to design the whole script to replace smileys, check for XSS attacks, looking for unclosed tags, format links, etc.

is there any preexisting script to do so.?

You can use something like TinyMCE for your textareas.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.