--- Lenny Davila <[EMAIL PROTECTED]> wrote:

> I would like to know if there is a way to find the string length of html
> output.  Disregarding the font tags and any kind of formatting.
> 
> For instance if you have the string:
> 
> <font color="blue">Text</font>
> 
> The length would be 4 and not 30.  Thanks for the help.
> 
> Lenny

print strlen(strip_tags("<font color="blue">Text</font>"));

You might need to do further processing to minimize multiple spaces into single
ones the way that HTML views things.

James

Reply via email to