Missing End-Tag in Nested Tag

Roman Baeriswyl <[email protected]> Thu, 4 Apr 2013 10:44:12 +0200
Newsgroups gmane.comp.web.html-tidy.user
Message-ID <CA+KmifHxia9TE2tGj1FcrQtTXYCoTGj4hRiP+An6Wtz+QMnzQw@mail.gmail.com>
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