thomascube
2006-11-09 674a0fb41dc80c7d1a99339481339ac6e5f75004
program/include/main.inc
@@ -958,8 +958,9 @@
      }
    else if ($mode=='remove')
      $str = strip_tags($str);
    $out = strtr($str, $encode_arr);
    // avoid douple quotation of &
    $out = preg_replace('/&([a-z]{2,5});/', '&\\1;', strtr($str, $encode_arr));
      
    return $newlines ? nl2br($out) : $out;
    }