alecpl
2010-11-14 a4c970508b899fd9e467b33319d689470908a24c
program/include/main.inc
@@ -560,9 +560,7 @@
    $out = strtr($str, $encode_arr);
    // avoid douple quotation of &
    // commented out, because this breaks displaying of text with entity strings
    // in text messages.
    //$out = preg_replace('/&([A-Za-z]{2,6}|#[0-9]{2,4});/', '&\\1;', $out);
    $out = preg_replace('/&([A-Za-z]{2,6}|#[0-9]{2,4});/', '&\\1;', $out);
    return $newlines ? nl2br($out) : $out;
    }