Lines Matching refs:html
4 function process_style(&$html) { argument
7 if (preg_match('#^(.*)(<style[^>]*>)(.*?)(</style>)(.*)$#is', $html, $matches)) {
10 $html = $matches[1].$matches[5];
16 function process_style_content($html) { argument
18 $html = preg_replace("#<!\[CDATA\[#","",$html);
19 $html = preg_replace("#\]\]>#is","",$html);
22 $html = preg_replace("#<!--#is","",$html);
23 $html = preg_replace("#-->#is","",$html);
26 $html = preg_replace("#/\*.*?\*/#is","",$html);
29 $html = '<![CDATA['.$html.']]>';
31 return $html;
34 function insert_styles($html, $styles) { argument
38 $html = preg_replace('#</head>#', join("\n", $styles)."\n</head>", $html);
39 return $html;