exclude script type=text/template from dom scrubbing

This commit is contained in:
Mike Greiling 2017-01-03 10:46:17 -06:00
parent 313aa339b9
commit ca404170f0

View file

@ -34,7 +34,7 @@ module JavaScriptFixturesHelpers
link_tags = doc.css('link')
link_tags.remove
scripts = doc.css('script')
scripts = doc.css("script:not([type='text/template'])")
scripts.remove
fixture = doc.to_html