title: Built in method to encode ampersands in urls returned from Url.Action?
body: <p>I am using Url.Action to generate a URL with two query parameters on a site that has a doctype of XHTML strict.</p>
  
  <pre><code>Url.Action("ActionName", "ControllerName", new { paramA="1" paramB="2" })
  </code></pre>
  
  <p>generates:</p>
  
  <pre><code>/ControllerName/ActionName/?paramA=1&amp;paramB=2
  </code></pre>
  
  <p>but I need it to generate the url with the ampersand escaped:</p>
  
  <pre><code>/ControllerName/ActionName/?paramA=1&amp;amp;paramB=2
  </code></pre>
  
  <p>The fact that Url.Action is returning the URL with the ampersand not escaped breaks my HTML validation. My current solution is to just manually replace ampersand in the URL returned from Url.Action with an escaped ampersand. Is there a built in or better solution to this problem?</p>