184
rated 0 times
[
191]
[
7]
/ answers: 1 / hits: 21686
/ 9 Years ago, fri, august 7, 2015, 12:00:00
I'm creating an AngularJS
single page application.
The data will be fetched from a webservice in json
-format.
The problem is that some text elements come with preformatted html tags
json output:
{
text: <p><span style=text-decoration: underline;><strong>test text</string></span></p>
}
Now how can I display this text and render the html directly, so that only test is shown to the user and the rest serves as markup?
<h1>{{data.text}}</h1>
More From » html