Thomas Bruederli
2012-09-26 b64233339b36e6781d2097f8318b7dca4b8aed32
Merge branch 'master' of github.com:roundcube/roundcubemail
1 files modified
2 ■■■■■ changed files
program/lib/html2text.php 2 ●●●●● patch | view | raw | blame | history
program/lib/html2text.php
@@ -145,6 +145,7 @@
    var $search = array(
        "/\r/",                                  // Non-legal carriage return
        "/[\n\t]+/",                             // Newlines and tabs
        '/<head[^>]*>.*?<\/head>/i',             // <head>
        '/<script[^>]*>.*?<\/script>/i',         // <script>s -- which strip_tags supposedly has problems with
        '/<style[^>]*>.*?<\/style>/i',           // <style>s -- which strip_tags supposedly has problems with
        '/<p[^>]*>/i',                           // <P>
@@ -172,6 +173,7 @@
    var $replace = array(
        '',                                     // Non-legal carriage return
        ' ',                                    // Newlines and tabs
        '',                                     // <head>
        '',                                     // <script>s -- which strip_tags supposedly has problems with
        '',                                     // <style>s -- which strip_tags supposedly has problems with
        "\n\n",                                 // <P>