Changeset da1722a in github


Ignore:
Timestamp:
Jan 12, 2010 2:46:22 AM (3 years ago)
Author:
alecpl <alec@…>
Branches:
master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
Children:
e363390b
Parents:
8780304
Message:
  • Fix to-text converting of HTML entities inside b/strong/th/hX tags (#1486422)
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • CHANGELOG

    r57837fd rda1722a  
    22=========================== 
    33 
     4- Fix to-text converting of HTML entities inside b/strong/th/hX tags (#1486422) 
    45- Bug in spellchecker suggestions when server charset != UTF8 (#1486406) 
    56- Managesieve: Fix requires generation for multiple actions (#1486397) 
  • program/lib/html2text.php

    r5a3f585 rda1722a  
    469469        // Run our defined search-and-replace 
    470470        $text = preg_replace($this->search, $this->replace, $text); 
    471         $text = preg_replace_callback($this->callback_search, array('html2text', '_preg_callback'), $text); 
    472471 
    473472        // Replace known html entities 
    474473        $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); 
    475477 
    476478        // Remove unknown/unhandled entities (this cannot be done in search-and-replace block) 
     
    567569        case 'strong': 
    568570            return $this->_strtoupper($matches[2]); 
    569         case 'hr': 
     571        case 'th': 
    570572            return $this->_strtoupper("\t\t". $matches[2] ."\n"); 
    571573        case 'h': 
Note: See TracChangeset for help on using the changeset viewer.