Missing End-Tag in Nested Tag

Hi everybody

I have an issue with tidy, I guess the easiest way is to show an example:

My input is something like this:
<p><strong>Text</strong>MoreText<strong>test</p>
Other Text

As you can see, the last <strong> is missing the end-tag after the text
"test".
Tidy detects this and adds the </strong>-tag before </p>, but it then also
encapsulates the following element (which is "Other Text" in this example)
with strong tags.

So the output of tidy is:
<p><strong>Text</strong>MoreText<strong>test</strong></p>
<strong>Other Text</strong>

Is there any way to tell tidy to not implicitly add those strong tags to
the next element?

I really appreciate your help

Cheers
Roman

Received on Thursday, 4 April 2013 09:17:07 UTC