I am trying to render the following line of code in haml
%p.article-body
lorem
= "<div>ipsum</div>".html_safe
I intend it to render as
<p class="article-body">
lorem
<div>ipsum</div>
</p>
But instead it renders as
<p class="article-body">
lorem
</p>
<div>ipsum</div>
What am I doing wrong? It only happens to those lines with call to html_safe. Otherwise, the contents will render inside the parent element.