When i am parsing a HTML file using jsoup, texts in multiple lines (with < br />
) in the HTML file is presented as a single line without new lines(\n
). How i can parse the multi line HTML document as multiline strings ??
I am using the method: Element.text()
Eg:
HTML contains C code which is properly displayed in multiple lines in HtMl file, but when i am taking the text data, all the data are presented in a single line without new line charactors.