| Hello, I want to use a regular expression to replace or remove some texts. Replace ------- I want to be able to replace > by > in the following HTML text : "<p><strong>Superman is greater > than Spiderman</strong></p>" The same code should 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 included) 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) should 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 ! |