title: PHPs htmlspecialcharacters equivalent in .NET?
body: <p>PHP has a great function called <a href="http://us2.php.net/manual/en/function.htmlspecialchars.php" rel="noreferrer">htmlspecialcharacters()</a> where you pass it a string and it replaces all of HTML's special characters with their safe equivalents, it's <em>almost</em> a one stop shop for sanitizing input. Very nice right?</p>
  
  <p>Well is there an equivalent in any of the .NET libraries?</p>
  
  <p>If not, can anyone link to any code samples or libraries that do this well?</p>