Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strip contents of <script> tags. #50

Merged
merged 1 commit into from
Apr 10, 2013

Conversation

benubois
Copy link
Contributor

This will turn this:

SanitizationFilter.call('<script>JavaScript!</script>').to_s #=> JavaScript!

into this:

SanitizationFilter.call('<script>JavaScript!</script>').to_s #=> 

Dunno if this would be useful for everyone, but for my purposes there aren't any cases where I want to show what is inside a script tag.

@rtomayko
Copy link
Contributor

I don't have a problem with this. 👍

jch added a commit that referenced this pull request Apr 10, 2013
@jch jch merged commit d4ef9db into gjtorikian:master Apr 10, 2013
@jch
Copy link
Contributor

jch commented Apr 10, 2013

Thanks for the pull!

@benubois benubois deleted the strip_script_contents branch April 12, 2013 21:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants