OSDN Git Service

fixed numeric entities
authormorimoto <morimoto@180c8125-5b33-4295-ad04-72a68a15b4cc>
Fri, 9 Jan 2009 13:35:39 +0000 (13:35 +0000)
committermorimoto <morimoto@180c8125-5b33-4295-ad04-72a68a15b4cc>
Fri, 9 Jan 2009 13:35:39 +0000 (13:35 +0000)
lib/Keitairc/IrcBuffer.pm

index 225e54c..5bb9045 100644 (file)
@@ -1,6 +1,6 @@
 # -*- mode: perl; coding: utf-8 -*-
 # Keitairc::IrcBuffer
-# $Id: IrcBuffer.pm,v 1.22 2009-01-03 00:32:03 morimoto Exp $
+# $Id: IrcBuffer.pm,v 1.23 2009-01-09 13:35:39 morimoto Exp $
 # $Source: /home/ishikawa/work/keitairc/tmp/keitairc/lib/Keitairc/IrcBuffer.pm,v $
 #
 # Copyright (c) 2008 Jun Morimoto <morimoto@mrmt.net>
@@ -277,9 +277,9 @@ sub simple_escape{
                s/&/&amp;/g;
                s/>/&gt;/g;
                s/</&lt;/g;
-               s/{/&#123/g;
-               s/}/&#125/g;
-               s/\+/&#043/g;
+               s/{/&#123;/g;
+               s/}/&#125;/g;
+               s/\+/&#043;/g;
        }
         $_;
 }