That's okay, NogDog.
I'm using it to display text only from <pre> tags.
I actually don't need to include the <p> tag, just the <br /> that would be used as the carriage return at the end of that line if generated by nl2br().
Is there a function that will convert just the <br> or <br /> tag to its '<br>' equivalent and leave the other tags alone or should str_replace() be used? I would only want to convert those generated from nl2br() so not to include those in the raw code.
Then maybe use a regex or other to locate each of those equivalent tags which represents a line and then put each find into an array then count($array) or create a loop and a count var and 'do while' it finds another and use the final value of the counter var? I would then add the lines computed from the line lengths > 80 to the total. Just a thought.
Hope this is clear, if not let me know and I'll try again.
I welcome any and all suggestions.
Thanks.