how to tell bulider to not to escape values
Posted
by dorelal
on Stack Overflow
See other posts from Stack Overflow
or by dorelal
Published on 2010-04-22T17:27:11Z
Indexed on
2010/04/22
17:33 UTC
Read the original article
Hit count: 170
ruby-1.8.7-p249 > xml = Builder::XmlMarkup.new
=> <inspect/>
ruby-1.8.7-p249 > xml.foo '<b>wow</b>'
=> "<inspect/><foo><b>wow</b></foo>"
ruby-1.8.7-p249 >
Builder is escaping the content and is converting the b tag into escaped value . How do I tell builder to no to escape it. I am using ruby 1.8.7 .
© Stack Overflow or respective owner