I created node text and pasted into my document like this:
#<Nokogiri::XML::Text:0x3fcce081481c "<%= stylesheet_link_tag 'style'%>">]>
When I try to save a document with this:
File.open('ng.html', 'w+'){|f| f << page.to_html}
I get this in the actual document:
<%= stylesheet_link_tag 'style'%>
Is there a way to turn off escaping and save my page with saved erb tags?
Thanks!
ruby ruby-on-rails nokogiri
mikewilliamson
source share