When a single word boundary character exists between tags, an extra < is added to the text value.
<p class='stage'>Ser på <b class='character'>kaptejnen</b>.</p>
yields:
<p class='stage'>Ser på <b class='character'>kaptejnen</b>.<</p>
As soon as there are multiple characters, or the character between the tags is no word boundary character, the extra < is not being added.
I assume this is because of the nature of the word boundary \b in regexes, not indicating a real character unless it is followed by another character. In this case the next character is the opening < f the closing tag.
When a single word boundary character exists between tags, an extra
<
is added to the text value.yields:
As soon as there are multiple characters, or the character between the tags is no word boundary character, the extra
<
is not being added.I assume this is because of the nature of the word boundary
\b
in regexes, not indicating a real character unless it is followed by another character. In this case the next character is the opening<
f the closing tag.