summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-01-28 23:17:34 +0000
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-01-28 23:17:34 +0000
commited05ade02af030196f2850389e6fc291440b79b2 (patch)
treeec95ac70a320cf11a218824705503ed701c9412e
parentedd7e0e88e10628cbfbf2e86decbfcfd7d2b53ae (diff)
Minor Utils entity cleanup
-rw-r--r--lib/rbot/utils.rb9
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/rbot/utils.rb b/lib/rbot/utils.rb
index d1052390..2b588b48 100644
--- a/lib/rbot/utils.rb
+++ b/lib/rbot/utils.rb
@@ -9,6 +9,7 @@ rescue LoadError
module Irc
module Utils
UNESCAPE_TABLE = {
+ 'laquo' => '<<',
'raquo' => '>>',
'quot' => '"',
'apos' => '\'',
@@ -21,6 +22,11 @@ rescue LoadError
'#8221' => '"',
'#8212' => '--',
'#39' => '\'',
+ 'amp' => '&',
+ 'lt' => '<',
+ 'gt' => '>',
+ 'hellip' => '...',
+ 'nbsp' => ' ',
=begin
# extras codes, for future use...
'zwnj' => '&#8204;',
@@ -48,7 +54,6 @@ rescue LoadError
'Epsilon' => '&#917;',
'Yuml' => '&#376;',
'Eta' => '&#919;',
- 'lt' => '<',
'Icirc' => '\xce',
'Upsilon' => '&#933;',
'ndash' => '&#8211;',
@@ -66,12 +71,10 @@ rescue LoadError
'cedil' => '\xb8',
'Ecirc' => '\xca',
'not' => '\xac',
- 'amp' => '&',
'AElig' => '\xc6',
'oslash' => '\xf8',
'acute' => '\xb4',
'lceil' => '&#8968;',
- 'laquo' => '\xab',
'shy' => '\xad',
'rdquo' => '&#8221;',
'ge' => '&#8805;',