css - Display HTML string as read-only formatted text in view -


I'm sending some text to my angle controller that I want to display as a formatted text, And not as an HTML .. For the sake of this example, I will use the following code which only reads the output to read but displays html tags instead of formatting.

  & lt; Div class = "well" ng -repeat = "field in model.viewFields" & gt; {{FieldName}} & lt; Textarea disabled = "true" style = "height: 200px; width: 100%; resize: none" & gt; {{Field.value}} & lt; / Textarea & gt; & Lt; / Div & gt;   

What can I swap textarea to show my {{field.Value}} html as formatted text?



Comments

Popular posts from this blog

Out of index C/C++ -

regex - PatternSyntaxException: while using String.ReplaceAll function in java? -

java - Projects which are accessed via multiple (different) IDEs: Ant or Maven? -