html.eex
<div id="contentEditableText"> <%= for %{"contentText" => contentText} <- @contentText.data do %> <div><%= "#{contentText}" %></div> <% end %> </div>
我可以成功检索它,但它显示原始的HTML本身.
<div id="contentEditableText"> <%= for %{"contentText" => contentText} <- @contentText.data do %> <div><%= raw(contentText) %></div> <% end %> </div>