Widen input element
[infodrom.org/service.infodrom.org] / class / accounting.class.php
index 8bd2fdf..6f69411 100644 (file)
@@ -11,7 +11,8 @@ class Accounting extends AccountTable {
   public function ajaxEditDescr(Array $data)
   {
     if (!strlen($data['content'])) return false;
-    return $this->modify('descr', utf8_decode($data['content']));
+    $content = str_replace(['&amp;','&lt;','&gt;'], ['&','<','>'], $data['content']);
+    return $this->modify('descr', utf8_decode($content));
   }
 
 }