Skip to content

Instantly share code, notes, and snippets.

@VxJasonxV
Created November 28, 2010 22:47
Show Gist options
  • Save VxJasonxV/719367 to your computer and use it in GitHub Desktop.
Save VxJasonxV/719367 to your computer and use it in GitHub Desktop.
A test to see the effects of unescaping unescaped characters.
>> string = "&gt; &lt; & < > \' \""
=> "&gt; &lt; & < > ' \""
>> require 'CGI'
=> true
>> CGI.unescapeHTML(string)
=> "> < & < > ' \""
>>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment