Same of topic, i think that in the MyTextSanitizer
class we need to add this feat.
Here a simple function for long words sanitizing that
you can use instead of php wordwrap()
function my_xoops_wordwrap($myterm="", $mychars=0,
$myreplace="
")
{
if ( $myterm == "" )
{
return $myterm;
}
if ( $mychars < 1 ) { return $myterm; } $myterm =
preg_replace("#([^\s<>'\"/.\-\?&\n\r\%]{".$mychars."})#i",
" \1".$myreplace ,$myterm);
return $myterm;
}
.. I also think that putting your sanitized text in DB
- and stop parsing it everytime - will be a great issue
for Xoops speed, but this feat need her own topic :)
(you can translate it in a less need of use smarty
cache - that imho sucks a little - too, right?)
banned
Logged In: YES
user_id=1374026
http://www.xoops.org/modules/newbb/viewtopic.php?topic_id=42393&start=0#forumpost189249