diff options
author | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-05-10 00:13:58 +0000 |
---|---|---|
committer | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-05-10 00:13:58 +0000 |
commit | 071a678a156dde974d8e470b659c89cb02b07b3b (patch) | |
tree | a0c846f48a5107c97261a117e7624edabe6feddd /lib/webrick/htmlutils.rb | |
parent | 7e3ec1db0da950bf77bc3aa8d9b24b161cb60654 (diff) | |
download | ruby-071a678a156dde974d8e470b659c89cb02b07b3b.tar.gz |
* lib/webrick: Add Documentation
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31499 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/webrick/htmlutils.rb')
-rw-r--r-- | lib/webrick/htmlutils.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/webrick/htmlutils.rb b/lib/webrick/htmlutils.rb index 01b9d2cc26..ed901f1ce2 100644 --- a/lib/webrick/htmlutils.rb +++ b/lib/webrick/htmlutils.rb @@ -11,6 +11,9 @@ module WEBrick module HTMLUtils + ## + # Escapes &, ", > and < in +string+ + def escape(string) str = string ? string.dup : "" str.gsub!(/&/n, '&') |