Convert HTML Tags to Lower-case for XHTML Compliance (WebProNews)

Convert HTML Tags to Lower-case for XHTML Compliance (WebProNews)
The XHTML definition demands all tags to be lower-cased. Your page will not validate otherwise and will therefore not be valid XHTML. If you write all your XHTML by yourself, it shouldn’t be an issue. You simply write all tags in lower-case. Now, imaging situations where you’re not in control over the code being written. One situation is when you let visitors/users of the website

ASP.NET: Remove HTML Tags From a String (WebProNews)

ASP.NET: Remove HTML Tags From a String (WebProNews)
A lot of websites allow users to input text and submit it to the site. This could be forums, blogs, content management systems etc. Imaging if the user writes HTML into these form fields? It could be perfectly harmless when used for styling, but it could also be used the wrong way. A typical scenario would be when a user enters JavaScript that does harmful things or embedding a style