tags:

views:

114

answers:

2

Is there a good library in CPAN for filtering out an textfield for all the bad things, like xss?

+6  A: 

Your first step should always be to search and browse through the results. It looks like there are lots of potential hits. When I'm looking for something new, I browse through search results and check the docs of modules to see how clear they are and how well built the API is. I also look for reviews (some have, some don't - it's often random) and check bugs. It gives me a sense of what I'm dealing with.

If your question is "Which of these various options is best?", then I'm afraid I don't know in this case. (My initial answer may have been too general.)

Two good places to start a search of CPAN:

Telemachus
+1  A: 

Might be a duplicate of

Filtering JavaScript out of HTML.

sleske