OSDN Git Service

applied some bug fixes
[nucleus-jp/nucleus-jp-ancient.git] / utf8 / nucleus / libs / ADMIN.php
index f9892e5..dbeef1a 100755 (executable)
@@ -5750,10 +5750,13 @@ function listplug_table_teamlist($template, $type) {
        }\r
 }\r
 function encode_desc(&$data)\r
-    {   $to_entities = get_html_translation_table(HTML_ENTITIES);\r
+    {   //_$to_entities = get_html_translation_table(HTML_ENTITIES);\r
+        $to_entities = get_html_translation_table(HTML_SPECIALCHARS);\r
         $from_entities = array_flip($to_entities);\r
+        $data = str_replace('<br />','\n',$data); //hack\r
         $data = strtr($data,$from_entities);\r
         $data = strtr($data,$to_entities);\r
+        $data = str_replace('\n','<br />',$data); //hack\r
         return $data;\r
     }\r
 function listplug_table_pluginlist($template, $type) {\r