Is it possible to convert HTML with Nokogiri to plain text? I also want to include <br />
tag.
For example, given this HTML:
<p>ala ma kota</p> <br /> <span>i kot to idiota </span>
I want this output:
ala ma kota
i kot to idiota
When I just call Nokogiri::HTML(my_html).text
it excludes <br />
tag:
ala ma kota i kot to idiota