32
32
protected function styleCallback($matches) {
33
33
$this->_styleMatches[] = $matches[1];
37
37
* Removes inline <style> tags from HTML, saves them for later use
38
38
* @todo Extend to indicate non-text/css style blocks
40
40
public function preFilter($html, $config, $context) {
42
42
if ($tidy !== null) $this->_tidy = $tidy;
43
43
$html = preg_replace_callback('#<style(?:\s.*)?>(.+)</style>#isU', array($this, 'styleCallback'), $html);
44
44
$style_blocks = $this->_styleMatches;