D
D
DTX2016-04-07 00:50:06
JavaScript
DTX, 2016-04-07 00:50:06

javascript. How not to escape tags when outputting json?

The text comes from the server. For example, this:
Dont <b>escape</b>
Next, this case is parsed using response.json () and displayed inside a div.
But there is no bold font inside the diva, because. there gets
Dont &lt;b&gt;escape&lt;/b&gt;
How to remove shielding?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
polar-bear, 2016-04-07
@DirecTwiX

AngularJS
AngularJS2
<div [innerHTML]="myHTML"></div>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question