Quote:
Originally Posted by cisaak
Thanks. This works except that h1 displays twice since it appears twice in the html. Anyway to limit output to one h1?
|
That's part of what I meant when I said you didn't give enough information. You often need to remove a few items from inside what was kept. Without looking at the site, I can't advise on the best way to get only the first one or remove the second.
Is there a class or id label inside the two h1 tags that differs between them?
Or, you could just give me a link to an article and I'll check it out. Alternatively, there are more powerful/complicated ways to keep only the first h1 tag.