public function part_long_words($str)
{
$word_separator = $this->wordSeparator;
if (($this->maxStringLen > 0) && (trim($str) != ''))
{
$str = str_replace(
[chr(1), chr(2), chr(3), chr(4), chr(5), chr(6), chr(7), chr(8),
"&", "<", ">", """, " ", "©", "®", "™",
chr(34), chr(39),
],
["", "", "", "", "", "", "", "",
chr(1), "<", ">", chr(2), chr(3), chr(4), chr(5), chr(6),
chr(7), chr(8),
],
$str
);
$str = preg_replace_callback(
"/(?<=[" . $word_separator . "]|^)(([^" . $word_separator . "]+))(?=[" . $word_separator . "]|$)/is" . BX_UTF_PCRE_MODIFIER,
[$this, "cutWords"],
$str
);
$str = str_replace(
[chr(1), "<", ">", chr(2), chr(3), chr(4), chr(5), chr(6), chr(7), chr(8), "<WBR/>", "<WBR>", "­"],
["&", "<", ">", """, " ", "©", "®", "™", chr(34), chr(39), "", "", ""],
$str
);
}
return $str;
}