Crate html2text [−] [src]
Convert HTML to text formats.
This crate renders HTML into a text format, wrapped to a specified width. This can either be plain text or with extra annotations to (for example) show in a terminal which supports colours.
Examples
let html = b" <ul> <li>Item one</li> <li>Item two</li> <li>Item three</li> </ul>"; assert_eq!(from_read(&html[..], 20), "\ * Item one * Item two * Item three ");
Modules
render |
Module containing the |
Functions
from_read |
Reads HTML from |
from_read_rich |
Reads HTML from |