I have this structure in my html document:
<p>
"<em>You</em> began the evening well, Charlotte," said Mrs. Bennet with civil self–command to Miss Lucas. "<em>You</em> were Mr. Bingley's first choice."
</p>
But i need my "plain text" to be wrappted in tags, to be able to process it :)
<p>
<text>"</text>
<em>You</em>
<text> began the evening well, Charlotte," said Mrs. Bennet with civil self–command to Miss Lucas. "</text>
<em>You</em>
<text> were Mr. Bingley's first choice."</text>
</p>
Any ideas how to accomplish this? I've looked at tagsoup and jsoup but i dont seem a way to solve this easily. Maybe using some fancy regexp.
Thanks