| Hello, I want to use a regular expression to replace or remove some texts. Replace ------- I want to be able to replace> by & gt; in the following HTML text: "<P> <strong> Superman is greater> than Spiderman </strong> </P>" The same Code shocould work also for this text without any change: "<SPAN class =" thisname <isinvalid "> <B> A> B? </B> </span>" You understood, it's to use with a custom HTML encoder. Remove ------ I want to remove all (tags encoded DED) that is between <SCRIPT> </SCRIPT> like: "<SCRIPT> some malicious code </SCRIPT>" The same Code (without any change, but different that the replace one of course) shocould work on this too: "<Script language =" JavaScript "> some malicious code </SCRIPT>" And this one "<Script language = 'javascript '> some malicious code </SCRIPT>" And this one too "<SCRIPT dull =" dull "Language =" JavaScript "> some malicious code </SCRIPT>" And this one too... "<Script language =" JavaScript "> some malicious code </SCRIPT>" Sorry to be so complete, but I posted some 500 and 250 questions and got incomplete answers due to the non complete enough question. Thanks in advance! |