Programming Tutorials

  • Home
  • Java
  • JavaScript
  • Android
  • C
  • C++
  • Python
  • ASP.net
  • PHP
  • Perl
  • Trends

escapeHTML() in Ruby

By: Jeeva  

escapeHTML(string)

Escape special characters in HTML, namely &\"<>

  CGI::escapeHTML('Usage: foo "bar" <baz>')
     # => "Usage: foo &quot;bar&quot; &lt;baz&gt;"



Archived Comments


Most Viewed Articles (in Ruby )

Using Proxy to connect to URLs in Ruby

header() in Ruby

out() in Ruby

Open and manipulate CSV files in Ruby

date and time in Ruby

SimpleDelegator in Ruby

What is dRuby?

dRuby client/server mode sample program

Using remote objects under dRuby

Security in dRuby

FTP using Ruby

Reading URL content using Ruby (HTTP)

POST a form in Ruby

Traversing all files in a directory using Ruby

Active Record in Ruby on Rails

Latest Articles (in Ruby)

Using Proxy to connect to URLs in Ruby

header() in Ruby

out() in Ruby

Open and manipulate CSV files in Ruby

date and time in Ruby

SimpleDelegator in Ruby

What is dRuby?

dRuby client/server mode sample program

Using remote objects under dRuby

Security in dRuby

FTP using Ruby

Reading URL content using Ruby (HTTP)

POST a form in Ruby

Traversing all files in a directory using Ruby

Active Record in Ruby on Rails

Comment on this tutorial

    categories

  • Data Science
  • Android
  • AJAX
  • ASP.net
  • C
  • C++
  • C#
  • Cocoa
  • Cloud Computing
  • HTML5
  • Java
  • Javascript
  • JSF
  • JSP
  • J2ME
  • Java Beans
  • EJB
  • JDBC
  • Linux
  • Mac OS X
  • iPhone
  • MySQL
  • Office 365
  • Perl
  • PHP
  • Python
  • Ruby
  • VB.net
  • Hibernate
  • Struts
  • SAP
  • Trends
  • Tech Reviews
  • WebServices
  • XML
  • Certification
  • Interview

Related Tutorials

Using Proxy to connect to URLs in Ruby

header() in Ruby

out() in Ruby

Open and manipulate CSV files in Ruby

date and time in Ruby

SimpleDelegator in Ruby

What is dRuby?

dRuby client/server mode sample program

Using remote objects under dRuby

Security in dRuby

FTP using Ruby

Reading URL content using Ruby (HTTP)

POST a form in Ruby

Traversing all files in a directory using Ruby

Active Record in Ruby on Rails

© 2022 Java-samples.com

Tutorial Archive: Data Science  Android  AJAX  ASP.net  C  C++  C#  Cocoa  Cloud Computing  EJB  Errors  Java  Certification  Interview  iPhone  Javascript  JSF  JSP  Java Beans  J2ME  JDBC  Linux  Mac OS X  MySQL  Perl  PHP  Python  Ruby  SAP  VB.net  EJB  Struts  Trends  WebServices  XML  Office 365  Hibernate

Latest Tutorials on: Data Science  Android  AJAX  ASP.net  C  Cocoa  C++  C#  EJB  Errors  Java  Certification  Interview  iPhone  Javascript  JSF  JSP  Java Beans  J2ME  JDBC  Linux  Mac OS X  MySQL  Perl  PHP  Python  Ruby  SAP  VB.net  EJB  Struts  Cloud Computing  WebServices  XML  Office 365  Hibernate