Is there a particular reason why {strip} tags in smarty don’t work? I have two templates. In one of them, it works. In the other it doesn’t. But I put them in the exact same place
{strip}
<!DOCTYPE html PUBLIC"-// W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
......
</html>
{/strip}
I would just like to know what are the possible causes to this.
If you have improperly nested or improperly closed Smarty tags elsewhere on the page, it could be breaking the
strippair, since they’re the outermost pair.Leaving something like
{literal}unclosed or having a syntax error that’s causing the page to stop rendering before the end of the page (view source; do you have the whole source, up to and including the final</html>tag?) would cause the final{/strip}to not get included/evaluated.