unescapeElement

unescapeElement(string, *elements)
Class Public methods

Undo escaping such as that done by ::escapeElement

print CGI::unescapeElement(
        CGI::escapeHTML('<BR><A HREF="url"></A>'), "A", "IMG")
  # "&lt;BR&gt;<A HREF="url"></A>"

print CGI::unescapeElement(
        CGI::escapeHTML('<BR><A HREF="url"></A>'), ["A", "IMG"])
  # "&lt;BR&gt;<A HREF="url"></A>"
doc_ruby_on_rails
2015-04-01 03:43:47
Comments
Leave a Comment

Please login to continue.