html - How to stop someone uploading a script in textarea? -
I have a situation where users can submit feedback via HTML text on a HTML page or JSP. It works fine and the text ends up in the database.
But can anybody recommend safeguards that could prevent anyone from submitting malicious scripts that could possibly affect the behavior of the page?
I can parse the text I entered and any & lt; For 'and LT'; And> to 'and' GT '; But can I do anything to verify the signed text?
Thank you
Mr. Morgan
Check it out:
Apache String Escape Utilities
escapjavascript and escape html
Comments
Post a Comment