Re: [SMARTY] {strip} smashes DOCTYPE

Maximillian Schwanekamp <[email protected]>
Newsgroups gmane.comp.php.smarty.general
Message-ID <[email protected]>
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/

-- 
Smarty General Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.