Re: [SMARTY] {strip} smashes DOCTYPE
| From: | Maximillian Schwanekamp | Date: | Thu, 15 Sep 2005 01:16:48 +0000 |
| Subject: | Re: [SMARTY] {strip} smashes DOCTYPE | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-13040@lists.php.net to get a copy of this message | ||
Iavor Raytchev wrote:
{strip} smashes it so it looks like that - <!DOCTYPE htmlPUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
Is this a bug or I am doing something wrong?Since the doctype is metadata, you probably should not be using strip on it at all. Better to use it within the <body></body> only, since that is where the output is (and typically 99% of the extraneous whitespace). -- Max Schwanekamp http://www.neptunewebworks.com/