Lines Matching defs:html

69 	function ReadCSS($html)
71 preg_match_all('/<style[^>]*media=["\']([^"\'>]*)["\'].*?<\/style>/is', $html, $m);
75 $html = str_replace($m[0][$i], '', $html);
79 preg_match_all('/<link[^>]*media=["\']([^"\'>]*)["\'].*?>/is', $html, $m);
83 $html = str_replace($m[0][$i], '', $html);
92 preg_match_all('/<style.*?>(.*?)<\/style>/si', $html, $m);
99 $html = str_replace('>'.$m[1][$i].'</style>', $sub, $html);
103 $html = preg_replace('/<!--mpdf/i', '', $html);
104 $html = preg_replace('/mpdf-->/i', '', $html);
105 $html = preg_replace('/<\!\-\-.*?\-\->/s', ' ', $html);
112 $x = preg_match_all($regexp, $html, $cxt);
118 $x = preg_match_all($regexp, $html, $cxt);
128 $x = preg_match_all($regexp, $html, $cxt);
138 $x = preg_match_all($regexp, $html, $cxt);
196 $match = preg_match_all($regexp, $html, $CSSblock);
469 $html = preg_replace($regexp, '', $html);
471 return $html;
474 function readInlineCSS($html)
476 $html = htmlspecialchars_decode($html); // mPDF 5.7.4 URLs
483 if (strpos($html, 'url(') !== false) {
484 preg_match_all('/url\(\"(.*?)\"\)/', $html, $m);
488 $html = str_replace($m[0][$i], 'url(\'' . $tmp . '\')', $html);
490 preg_match_all('/url\(\'(.*?)\'\)/', $html, $m);
494 $html = str_replace($m[0][$i], 'url(\'' . $tmp . '\')', $html);
496 preg_match_all('/url\(([^\'\"].*?[^\'\"])\)/', $html, $m);
500 $html = str_replace($m[0][$i], 'url(\'' . $tmp . '\')', $html);
505 $size = strlen($html) - 1;
506 if (substr($html, $size, 1) !== ';') {
507 $html .= ';';
512 preg_match_all($regexp, $html, $styleinfo);