Changeset 5cc4b13 in github for program/lib/html2text.inc
- Timestamp:
- Mar 19, 2007 6:36:24 PM (6 years ago)
- Branches:
- master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
- Children:
- b3f1ecb
- Parents:
- 86958f7
- File:
-
- 1 edited
-
program/lib/html2text.inc (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
program/lib/html2text.inc
rdd792e8 r5cc4b13 113 113 '/<script[^>]*>.*?<\/script>/i', // <script>s -- which strip_tags supposedly has problems with 114 114 //'/<!-- .* -->/', // Comments -- which strip_tags might have problem a with 115 '/<a href="([^"]+)"[^>]*>(.+?)<\/a>/ie', // <a href="">115 '/<a [^>]*href="([^"]+)"[^>]*>(.+?)<\/a>/ie', // <a href=""> 116 116 '/<h[123][^>]*>(.+?)<\/h[123]>/ie', // H1 - H3 117 117 '/<h[456][^>]*>(.+?)<\/h[456]>/ie', // H4 - H6 … … 161 161 ' ', // Newlines and tabs 162 162 '', // <script>s -- which strip_tags supposedly has problems with 163 //'', // Comments -- which strip_tags might have problem a with163 //'', // Comments -- which strip_tags might have problem a with 164 164 '$this->_build_link_list("\\1", "\\2")', // <a href=""> 165 165 "strtoupper(\"\n\n\\1\n\n\")", // H1 - H3 166 "ucwords(\"\n\n\\1\n\ n\")",// H4 - H6167 "\n ",// <P>166 "ucwords(\"\n\n\\1\n\")", // H4 - H6 167 "\n\n", // <P> 168 168 "\n", // <br> 169 169 'strtoupper("\\1")', // <b> … … 256 256 * @return void 257 257 */ 258 function html2text( $source = '', $from_file = false, $ do_link_table = true )258 function html2text( $source = '', $from_file = false, $produce_link_table = true ) 259 259 { 260 260 if ( !empty($source) ) {
Note: See TracChangeset
for help on using the changeset viewer.
