Hi everyone.
I have like this :
$mytext="that's really "confusing" and <absolutly> silly";
echo substr($mytext,0,6);
The output in this case will be : that&#
instead of that's
What i want is to count html entities as 1 character then substr, because i always end up with breaked html or some obscure characters at the end of text.
Please don't suggest me to html decode it then substr then encode it, i want a clean method :)
Thanks