开发者

Smarty strip tags not working

开发者 https://www.devze.com 2023-02-05 14:20 出处:网络
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

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 thi开发者_开发技巧s.


If you have improperly nested or improperly closed Smarty tags elsewhere on the page, it could be breaking the strip pair, 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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号