Method | Description | |
---|---|---|
convert ( $html, $partial = null ) : string | Tries to convert the given HTML into a plain text format - best suited for e-mail display, etc. |
Method | Description | |
---|---|---|
fix_newlines ( $text ) : string | Unify newlines; in particular, \r\n becomes \n, and then \r becomes \n. This means that all newlines (Unix, Windows, Mac) all become \ns. | |
iterate_over_node ( $node ) | ||
next_child_name ( $node ) | ||
prev_child_name ( $node ) |
In particular, it tries to maintain the following features:
protected static fix_newlines ( $text ) : string | ||
return | string | the fixed text |