Render data as html
(Created page with "If your data contains html markup and you want the browser to render the html go like this: Column: IsStatic = True , TaggedValue DataIsHtml=True In Razor the implementation...")
 
No edit summary
Line 5: Line 5:
In Razor the implementation use
In Razor the implementation use
  Html.Raw(<normal bind>)
  Html.Raw(<normal bind>)
In AngularJS it is more complex due to security concerns:
Must inject service $sce. $sce is a service that provides Strict Contextual Escaping services to AngularJS.

Revision as of 08:41, 30 September 2018

If your data contains html markup and you want the browser to render the html go like this:

Column: IsStatic = True , TaggedValue DataIsHtml=True

In Razor the implementation use

Html.Raw(<normal bind>)

In AngularJS it is more complex due to security concerns:

Must inject service $sce. $sce is a service that provides Strict Contextual Escaping services to AngularJS.

This page was edited 96 days ago on 02/10/2024. What links here