http://www.perlmonks.org?node_id=816393


in reply to HTML cleanup of user submitted content

If you are going to use some formatting perhaps you should consider using BBCode rather than HTML. BBCode is used in number of Bulletin Boards so is fairly well known.

There is a module BBCode::Parser which can take care of the BBCode to HTML presentation for you as well.