Markup In Fields

Markup In Fields

Guidelines for Markup in Sitecore Fields

  • Markup in Sitecore fields can sometimes generate validation exceptions
    • Exmaple: A potentially dangerous Request.Path value was detected from the client
  • Avoid using characters like '&' in URL paths; replace them with underscores
  • To disable request validation on a page, add ValidateRequest="false" to the Page directive
  • To disable request validation across a site, edit the <system.web> portion of web.config
    • Set <pages validateRequest="false" />
    • Set <httpRuntime requestPathInvalidCharacters="" requestValidationMode="2.0" />

Configuration Settings

<httpRuntime requestPathInvalidCharacters="" requestValidationMode="2.0" />
<pages validateRequest="false" />