title: Clean user HTML in .net
body: <p>My C# site allows users to submit HTML to be displayed on the site. I would like to limit the tags and attributes allowed for the HTML, but am unable to figure out how to do this in .net.</p>
  
  <p>I've tried using <a href="http://www.codeplex.com/htmlagilitypack" rel="nofollow noreferrer">Html Agility Pack</a>, but I don't see how to modify the HTML, I can see how to go through the HTML and find certain data, but actually generating an output file is baffling me. </p>
  
  <p>Does anyone have a good example for cleaning up HTML in .net? The agility pack might be the answer, but the documentation is lacking.</p>