#
# htmlutils.rb -- HTMLUtils Module
#
# Author: IPR -- Internet Programming with Ruby -- writers
# Copyright (c) 2000, 2001 TAKAHASHI Masayoshi, GOTOU Yuuzou
# Copyright (c) 2002 Internet Programming with Ruby writers. All rights
# reserved.
#
# $IPR: htmlutils.rb,v 1.7 2002/09/21 12:23:35 gotoyuzo Exp $
module WEBrick
module HTMLUtils
def escape(string)
str = string ? string.dup : ""
str.gsub!(/&/n, '&')
str.gsub!(/\"/n, '"')
str.gsub!(/>/n, '>')
str.gsub!(/{Ljiff.R+f>HEtVK=]teQ1Ɋq,)1琮X'gL(}_TC.)[cbцaL&U7M/f$S8Υ@Ia߫Ypйc (A"\Wǁ4g9#7}JZ*ɗbJvu??F
** *R=7ԀP~O5Fp@`GnE<|juA\~\( m>]&KW[">[͙ohKRO{ j.w}*3fanas>҉K]2̺p-t;2D^0_u_VDwH@FQPCVȓP +&<4H2P#.Jw+7"hynZB[y
q.wu.ɖ>Qnn?eʳaepI*
>HGr'@۲E]^ںω8UP'WR 7RQį1p8!L!" 8b7+UxjbFlBܧ:rP[`!+&COg;6LQ(J)_\:,VІ9&G(pknm<%>T5UD@楠9s$QHY(ӽbmDL#*wN#J; kWn&ӊDΡ)2q#.e| ,$}L3qW4Kmї`q0KEv7$'}Y
gXEWPF:{GѯoDW,MdU6oAwݢtEaCzfV˫ z*0@ e䳃