]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commitdiff
html entities: add deg
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Wed, 26 Jan 2011 12:36:41 +0000 (13:36 +0100)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Wed, 26 Jan 2011 12:37:35 +0000 (13:37 +0100)
The symbol appears in weather underground data an was not being escaped
when htmlentities was not available

lib/rbot/core/utils/utils.rb

index 4105fa12db611c0988d5f91d0757c458d44e2168..1ea69df3414ea32bcb3fa979661277fcdbaf5864 100644 (file)
@@ -23,6 +23,7 @@ rescue LoadError
     'raquo' => '»',
     'quot' => '"',
     'apos' => '\'',
+    'deg' => '°',
     'micro' => 'µ',
     'copy' => '©',
     'trade' => '™',