Converts HTML to formatted plain text
Located in /lib/Roundcube/rcube_html2text.php (line 98)
Class | Description |
---|---|
html2text | Converts HTML to formatted plain text |
Contains a list of HTML tags to allow in the resulting text.
List of preg* regular expression patterns to search for and replace using callback function.
Target character encoding for output text
List of pattern replacements corresponding to patterns searched.
List of preg* regular expression patterns to search for, used in conjunction with $ent_replace.
Contains the HTML content to convert.
List of pattern replacements corresponding to patterns searched for PRE body.
List of preg* regular expression patterns to search for in PRE body, used in conjunction with $pre_replace.
List of pattern replacements corresponding to patterns searched.
List of preg* regular expression patterns to search for, used in conjunction with $replace.
Contains the converted, formatted text.
Contains the base URL that relative links should resolve to.
Maximum width of the formatted text, in columns.
Set this value to 0 (or less) to ignore word wrapping and not constrain text to a fixed-width column.
Indicates whether content in the $html variable has been converted yet.
Boolean flag, true if a table of link URLs should be listed after the text.
Contains URL addresses from links to be rendered in plain text.
Constructor.
If the HTML source string (or file) is supplied, the class will instantiate with that source propagated, all that has to be done it to call get_text().
Callback function to correctly add citation markers for blockquote contents
Returns the text, converted from HTML.
Callback function for preg_replace_callback use in PRE content handler.
Prints the text, converted from HTML.
Sets the allowed HTML tags to pass through to the resulting text.
Tags should be in the form "<p>", with no corresponding closing tag.
Sets a base URL to handle relative links.
Loads source HTML into memory, either from $source string or a file.
Callback function for preg_replace_callback use.
Helper function called by preg_replace() on link replacement.
Maintains an internal list of links to be displayed at the end of the text, with numeric indices to the original point in the text they appeared. Also makes an effort at identifying and handling absolute and relative links.
Workhorse function that does actual conversion (calls _converter() method).
Workhorse function that does actual conversion.
First performs custom tag replacement specified by $search and $replace arrays. Then strips any remaining HTML tags, reduces whitespace and newlines to a readable format, and word wraps the text to $width characters.
Helper function for BLOCKQUOTE body conversion.
Helper function for PRE body conversion.
Documentation generated on Fri, 03 May 2013 12:45:00 +0200 by phpDocumentor 1.4.4