jquery inserted HTML is rendered as a raw text
jquery
Solution
$('div.desc').html(decodeURI(that_string));
//OR
$('div.desc').html($.parseHTML(decodeURI(that_string)));
The `decodeURI()` function will decode the string so it will output `<`, `>` etc.
Problem
I have weird situation, I have that string ``` lorem<br/><br/>ipsum<br/><br/>a<br/>b<br/><br/>c ``` which is put into a div: ``` $('div.desc').html(that_string); ``` or ``` $('div.desc').html($.parseHTML(that_string)); ``` but in both cases it is being rendered as a raw text: ``` lorem<br/><br/>ipsum<br/><br/>a<br/>b<br/><br/>c ``` instead of ``` lorem ipsum a b c ``` Why ?