exclude script type=text/template from dom scrubbing
This commit is contained in:
parent
313aa339b9
commit
ca404170f0
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue