I don’t have access to the HTML, only the raw text. Is it possible to find a word in the raw text like INFO and ENDINFO and use those to wrap a div around the content.
<div>
content content content content content
INFO
Information content information content
ENDINFO
</div>
<div>
content content content content content
<div class="INFO">
Information content information content
</div>
</div>
How about this?