htmlspecialchars_decode
-
Unescaping a string that has been escaped for HTML can be done using the
CGI.unescapeHTMLclass method.PHP
$result = htmlspecialchars_decode("test "unescaping" <characters>"); var_export($result); // => 'test "escaping" <characters>'
Ruby
require 'cgi' p CGI.unescapeHTML("test "unescaping" <characters>") # => "test \"unescaping\" <characters>"
see also
Looking for Rails or PHP web application development, integration, and training?
Rails for PHP is brought to you by Maintainable Software. Get custom web applications and personalized training from the authors of the book and website.

