summaryrefslogtreecommitdiff
path: root/lib/webrick/htmlutils.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/webrick/htmlutils.rb')
-rw-r--r--lib/webrick/htmlutils.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/webrick/htmlutils.rb b/lib/webrick/htmlutils.rb
index 01b9d2c..ed901f1 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, '&amp;')