P
Peter Morris [Air Software Ltd]
Hi all
I want to allow users to enter HTML, but I want to ensure that
A) The HTML entered only contains a subset of html tags (a, img, div, etc)
and not certain other elements (html, body, script) etc.
B) The HTML is syntactically correct, so a <li> would have a corresponding
</li>, a <td> would have a </td>, etc.
I'm pretty confident that .net already has something to do this, but I have
no clue what. Can anyone help?
Thanks
--
Pete
====
Read or write articles on just about anything
http://www.HowToDoThings.com
My blog
http://blogs.slcdug.org/petermorris/
I want to allow users to enter HTML, but I want to ensure that
A) The HTML entered only contains a subset of html tags (a, img, div, etc)
and not certain other elements (html, body, script) etc.
B) The HTML is syntactically correct, so a <li> would have a corresponding
</li>, a <td> would have a </td>, etc.
I'm pretty confident that .net already has something to do this, but I have
no clue what. Can anyone help?
Thanks
--
Pete
====
Read or write articles on just about anything
http://www.HowToDoThings.com
My blog
http://blogs.slcdug.org/petermorris/