[pmwiki-users] Suppress HTML comments from template in output

Petko Yotov 5ko at 5ko.fr
Fri Jan 31 16:03:26 CST 2014


Oliver Betz writes:
> not really important, more out of curiosity: Is there a simple way to
> suppress the HTML comments from the template directives?
>
> For example <!--PageHeaderFmt--> etc.

Not with a PmWiki variable or something like this because the way the  
template is printed, it does not know if later there wouldn't be some  
function trying to insert HTML into the header.

It is probably possible to buffer the output and do the replacements after,  
see the first example at http://php.net/ob-start .

Petko



More information about the pmwiki-users mailing list