Changeset da1722a in github
- Timestamp:
- Jan 12, 2010 2:46:22 AM (3 years ago)
- Branches:
- master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
- Children:
- e363390b
- Parents:
- 8780304
- Files:
-
- 2 edited
-
CHANGELOG (modified) (1 diff)
-
program/lib/html2text.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
CHANGELOG
r57837fd rda1722a 2 2 =========================== 3 3 4 - Fix to-text converting of HTML entities inside b/strong/th/hX tags (#1486422) 4 5 - Bug in spellchecker suggestions when server charset != UTF8 (#1486406) 5 6 - Managesieve: Fix requires generation for multiple actions (#1486397) -
program/lib/html2text.php
r5a3f585 rda1722a 469 469 // Run our defined search-and-replace 470 470 $text = preg_replace($this->search, $this->replace, $text); 471 $text = preg_replace_callback($this->callback_search, array('html2text', '_preg_callback'), $text);472 471 473 472 // Replace known html entities 474 473 $text = html_entity_decode($text, ENT_COMPAT, 'UTF-8'); 474 475 // Run our defined search-and-replace with callback 476 $text = preg_replace_callback($this->callback_search, array('html2text', '_preg_callback'), $text); 475 477 476 478 // Remove unknown/unhandled entities (this cannot be done in search-and-replace block) … … 567 569 case 'strong': 568 570 return $this->_strtoupper($matches[2]); 569 case ' hr':571 case 'th': 570 572 return $this->_strtoupper("\t\t". $matches[2] ."\n"); 571 573 case 'h':
Note: See TracChangeset
for help on using the changeset viewer.
