I need to convert HTML to plain text. My only requirement of formatting is to retain new lines in the plain text. New lines should be displayed not only in the case of <
I would guess you could use the ParserCallback.
You would need to add code to support the tags that require special handling. There are:
callbacks that should allow you to check for the tags you want to monitor and then append a newline character to your buffer.