I am trying to render raw html like this ->
<%= raw "<noscript>\n <div style=\"width: 302px; height: 422px;\">\n </div>\n </noscript> \n\n\n" %>
but when I use Edit as Html
in Chrome to get the code I see the following ->
<noscript>
<div style="width: 302px; height: 422px;"> </div>
</noscript>
which is obviously not what I want. What am I missing here? Why the content inside the noscript
is being escaped? What's the right way to render this string as html ?
This isn't a Phoenix issue. This is just how chrome handles when you edit as html. You can see the same thing in action at http://jsfiddle.net/h6crtf2m
<noscript><div></div></noscript>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With