Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

A html string is escaped in haml file

#test   - html = "<a href='http://www.a.com'>Test</a>"   = html 

The output is

<div id='test'>   &lt;a href='http://www.a.com'&gt;Test&lt;/a&gt; </div> 

But I want a output:

<div id='test'>   <a href='http://www.a.com'>Test</a> </div> 

Anyone has solutions? Thanks.

like image 918
garrydou Avatar asked Jan 14 '11 10:01

garrydou


1 Answers

= raw html 

or:

= html.html_safe 
like image 115
gunn Avatar answered Sep 22 '22 19:09

gunn