protected property Html2Text::$search in Swift Mailer 7
List of preg* regular expression patterns to search for, used in conjunction with $replace.
@type array
See also
$replace
File
- includes/
classes/ Html2Text.inc, line 55
Class
Code
protected $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>
'/<br[^>]*>/i',
// <br>
'/<i[^>]*>(.*?)<\\/i>/i',
// <i>
'/<em[^>]*>(.*?)<\\/em>/i',
// <em>
'/(<ul[^>]*>|<\\/ul>)/i',
// <ul> and </ul>
'/(<ol[^>]*>|<\\/ol>)/i',
// <ol> and </ol>
'/(<dl[^>]*>|<\\/dl>)/i',
// <dl> and </dl>
'/<li[^>]*>(.*?)<\\/li>/i',
// <li> and </li>
'/<dd[^>]*>(.*?)<\\/dd>/i',
// <dd> and </dd>
'/<dt[^>]*>(.*?)<\\/dt>/i',
// <dt> and </dt>
'/<li[^>]*>/i',
// <li>
'/<hr[^>]*>/i',
// <hr>
'/<div[^>]*>/i',
// <div>
'/(<table[^>]*>|<\\/table>)/i',
// <table> and </table>
'/(<tr[^>]*>|<\\/tr>)/i',
// <tr> and </tr>
'/<td[^>]*>(.*?)<\\/td>/i',
// <td> and </td>
'/<span class="_html2text_ignore">.+?<\\/span>/i',
);