Yep, seeing that now. to_s / to_html doesn't mess with scripts, should we
use that, or are there other cases where things are messed up?


On Wed, Mar 6, 2013 at 8:01 PM, Dan Allen <notifications@github.com> wrote:

> In lib/awestruct/context_helper.rb:
>
> >        else
> > -        doc.to_s.tap do |d|
> > +        doc.to_xhtml.tap do |d|
>
> Create a script tag, wrap the contents in CDATA (with the appropriate
> JavaScript comments) and watch Nokogiri just wreck the output when using
> to_xhtml.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/awestruct/awestruct/pull/221/files#r3274239>
> .
>



-- 
Jason Porter
http://en.gravatar.com/lightguardjp