Diff for phpPlatonLib/HTML_Content/Content.php between version 1.18 and 1.19
| version 1.18, 2003/05/29 00:28:39 |
version 1.19, 2003/08/19 10:19:48 |
| Line 166 class HTML_Content |
|
| Line 166 class HTML_Content |
|
| $this->_data['body_attr'] = ''; |
$this->_data['body_attr'] = ''; |
| ! isset($this->_content_type) && $this->_content_type = 'text/html'; |
! isset($this->_content_type) && $this->_content_type = 'text/html'; |
| |
|
| |
if (strncasecmp($this->_content_type, 'text/html', 9)) { |
| |
$this->_data['body'] = $all_data; |
| |
return true; |
| |
} |
| |
|
| if (preg_match('|^\s*<!DOCTYPE ([^>]*)>|', $all_data, $matches)) { |
if (preg_match('|^\s*<!DOCTYPE ([^>]*)>|', $all_data, $matches)) { |
| $this->_data['doctype'] = trim($matches[1]); |
$this->_data['doctype'] = trim($matches[1]); |
| } |
} |
Platon Group <platon@platon.org> http://platon.org/
|
|