Im applying a trim function to maximise the number of characters. However my ië, is turned into ië,
using the following function:
function nicetrim($s, $MAX_LENGTH) {
$str_to_count = html_entity_decode($s);
if (strlen($str_to_count) <= $MAX_LENGTH)
return $s;
$s2 = substr($str_to_count, 0, $MAX_LENGTH - 3);
$s2 .= "...";
return htmlentities($s2);
}
hope someone can help me with my confusion🙂