I'm writing a perl cgi application similar to a bulletin board. It's desired the user be able to enter simple html commands for bold text, italics, font formatting, etc. Rather than blindly accepting all html it would be best to accept a subset of innocuous html tags. What is a good way to do this? I looked at HTML:arser but got mired in the details and didn't see a straightforward solution. Any ideas or code snippets, especially code snippets, would be greatly appreciated.
I bet this topic has been kicked around ad nauseam but I couldn't find it in the FAQ or elsewhere. Forgive me if it's a tired subject.
I bet this topic has been kicked around ad nauseam but I couldn't find it in the FAQ or elsewhere. Forgive me if it's a tired subject.