Click here to Skip to main content
15,887,676 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
Hi All,
I am stuck with a xsl implementation. I am trying to write a xsl block which would allow only a selected few ‘html’ tags. i.e. allow a tags, bold etc…but not everything like script, table…whatever…

For eg: the string below :

<script> alert(123); </script> 
Enter some text here link or an attachment.
 what is your name 
<br />
<hr />



Xsl transformation should strip out script, hr, br tags and not tag. I can not use disable-output-escaping="yes" as it allows html for whole string :(
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900