Is it just me, or does that seem too easy?
It seems like it will have the same problem you're having now.
I think we need to process the tags in order, so we have to figure out how iteratate over all the tags in order in PHP. If we can do that, the current algorithm will work fine.
we have to figure out how iteratate over all the tags in order in PHP
Like
foreach ($taglist as $tag) {
dojohnhmagic();
}
or has my skimming impaired my understanding of where we are right now?
Hmm, actually, if we can change the regex to collect both open and close tags, and if they are returned in the order they appear in the text, ita's suggestion is right on the nose.
if we can change the regex to collect both open and close tags, and if they are returned in the order they appear in the text
You mean that wasn't implicit in my post above, which doesn't mention the idea at all?
I certainly
thought
it...
I must have missed it. I think I've got an excess of blood in my caffeine system. I'll go fix that now.
Speaking of open tags....
Rebecca Lizard had a tagline that was too long and got automatically cropped. Unfortunately, the crop occurred after an
t i
but before the
t /i
This meant that everything underneath her tag --- i.e. her post and all the posts beneath it, were in italics.
I edited her tag and got rid of the
t i
Oh. Stupid me. I didn't even check to see if the tag had been cropped, after I changed it.
I need to go to bed.
Whatever happened to character counting in Word?
I didn't even think it was that long!
I was really tired.