From: Giuseppe Bilotta Date: Sun, 28 Jan 2007 23:17:34 +0000 (+0000) Subject: Minor Utils entity cleanup X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=ed05ade02af030196f2850389e6fc291440b79b2;p=user%2Fhenk%2Fcode%2Fruby%2Frbot.git Minor Utils entity cleanup --- 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' => '‌', @@ -48,7 +54,6 @@ rescue LoadError 'Epsilon' => 'Ε', 'Yuml' => 'Ÿ', 'Eta' => 'Η', - 'lt' => '<', 'Icirc' => '\xce', 'Upsilon' => 'Υ', 'ndash' => '–', @@ -66,12 +71,10 @@ rescue LoadError 'cedil' => '\xb8', 'Ecirc' => '\xca', 'not' => '\xac', - 'amp' => '&', 'AElig' => '\xc6', 'oslash' => '\xf8', 'acute' => '\xb4', 'lceil' => '⌈', - 'laquo' => '\xab', 'shy' => '\xad', 'rdquo' => '”', 'ge' => '≥',