HTML
<div id="dialog"><p id="message"></p></div>
JSON
data = {message='There should be<br>two lines here'};
$('#dialog').render(data);
Rendered HTML
<div id="dialog"><p id="message">There should be<br>two lines here</p></div>
And the <br> shouws up as text in the browser, which implies that the dom does not change. Is there a simple way say $('#dialog').flatten(); so it expands out the HTML?
Any help will be appreciated.
Arturo
data = {message='There should be<br>two lines here'};
$('#dialog').render(data);
Rendered HTML
<div id="dialog"><p id="message">There should be<br>two lines here</p></div>
And the <br> shouws up as text in the browser, which implies that the dom does not change. Is there a simple way say $('#dialog').flatten(); so it expands out the HTML?