Changeset f6b2824 in github


Ignore:
Timestamp:
Jun 3, 2010 8:22:41 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:
f22b543
Parents:
997111f
Message:
  • Add line-break in place of <DIV> tag (#1486666)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • program/lib/html2text.php

    rda1722a rf6b2824  
    149149        '/<script[^>]*>.*?<\/script>/i',         // <script>s -- which strip_tags supposedly has problems with 
    150150        '/<style[^>]*>.*?<\/style>/i',           // <style>s -- which strip_tags supposedly has problems with 
    151         //'/<!-- .* -->/',                         // Comments -- which strip_tags might have problem a with 
    152151        '/<p[^>]*>/i',                           // <P> 
    153152        '/<br[^>]*>/i',                          // <br> 
     
    159158        '/<li[^>]*>/i',                          // <li> 
    160159        '/<hr[^>]*>/i',                          // <hr> 
     160        '/<div[^>]*>/i',                         // <div> 
    161161        '/(<table[^>]*>|<\/table>)/i',           // <table> and </table> 
    162162        '/(<tr[^>]*>|<\/tr>)/i',                 // <tr> and </tr> 
     
    193193        '',                                     // <script>s -- which strip_tags supposedly has problems with 
    194194        '',                                     // <style>s -- which strip_tags supposedly has problems with 
    195         //'',                                     // Comments -- which strip_tags might have problem a with 
    196         "\n\n",                               // <P> 
     195        "\n\n",                                 // <P> 
    197196        "\n",                                   // <br> 
    198197        '_\\1_',                                // <i> 
     
    203202        "\n\t* ",                               // <li> 
    204203        "\n-------------------------\n",        // <hr> 
     204        "<div>\n",                                   // <div> 
    205205        "\n\n",                                 // <table> and </table> 
    206206        "\n",                                   // <tr> and </tr> 
Note: See TracChangeset for help on using the changeset viewer.