How to convert HTML to text keeping linebreaks
Posted
by Eduardo
on Stack Overflow
See other posts from Stack Overflow
or by Eduardo
Published on 2010-03-25T07:24:29Z
Indexed on
2010/03/25
7:53 UTC
Read the original article
Hit count: 528
How may I convert HTML to text keeping linebreaks (produced by elements like br,p,div, ...) possibly using NekoHTML or any decent enough HTML parser
Example:
Hello<br/>World
to:
Hello\n
World
© Stack Overflow or respective owner