CGI.escapeElement : HTML « CGI « Ruby






CGI.escapeElement


require 'cgi' 
puts CGI.escapeElement('<hr><a href="/mp3">Click Here</a><br>','A') 

 








Related examples in the same category

1.CGI.escape and CGI.unescape.
2.CGI.escapeHTML
3.CGI.unescapeHTML
4.Generating HTML
5.Output a string to web
6.CGI for creating a web page
7.nested cgi.tag to create HTML document
8.Create a hash of HTTP response headers