Find Javascript Code inside String
Posted
by Ph.E
on Stack Overflow
See other posts from Stack Overflow
or by Ph.E
Published on 2010-04-26T12:05:54Z
Indexed on
2010/05/09
5:08 UTC
Read the original article
Hit count: 173
Greetings friends,
I am developing a web application that will allow the customer to enter a personalized message, which will then be converted to HTML. Well, the problem is that I can not allow the insertion of Javascript code. So I need a method that filters the text, searching for and remove it. I think the regular expressions to solve my problem, but I'm having difficulty building. Some of his friends could help me, or has already developed something for this.
Thank you.
© Stack Overflow or respective owner