escapeHTML() in Ruby
By: Jeeva
escapeHTML(string)Escape special characters in HTML, namely &\"<>
CGI::escapeHTML('Usage: foo "bar" <baz>') # => "Usage: foo "bar" <baz>"
Archived Comments
Most Viewed Articles (in Ruby ) |
Latest Articles (in Ruby) |
Comment on this tutorial