I'm getting html data from a database which has been sanitised.
Basically what I'm getting is something like this:
<div class="someclass"><blockquote>
<p>something here.</p>
</blockquote>
And so on. So if I try to display it, it is displaying as
<div class="someclass"><blockquote> <p>something here</p> </blockquote>
What I want is to convert it to proper html before displaying, so that the content displays properly, without the tags.
What's the easiest way to do this using javascript?
Just want to note here that I'm working with in Adobe AIR. So I don't have any alternatives.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…