|
Posted by Al on 09/30/77 11:37
I do apologise. It seems to work well, and I realised that my mistake
was in copying your code directly. the string in my code is $ret and
yours is $str. So basically I'm an idiot :)
Nonetheless, thanks for the help. And sorry I've been so long getting
back on the matter, I've been away for the weekend.
I'll implement the code as soon as I can and work out how to go about
fixing my output (whether I should cut the fieldset off entirely or
leave it and just ad trailing '...'s etc.)
I've thought of a few problems I could encounter. If I just leave the
'...'s and close the fieldset, I run the risk of one particular quote
being just long enough to finish the internal <div> but not the
fieldset, e.g.:
<fieldset>
<legend>Bob</legend>
<div>Just long enough to get the end of this in, but not the rest</div>
....
That'll be alright, but the '...'s won't be enclosed on the div, not
that that's a *major* problem, just if I want to style the divs more
than now, it won't style the '...' (although the same styling applied
to fieldset, fieldset * {} will work.
Anyway thanks again for helping me out.
[Back to original message]
|