The wash() method cleans the string output of a template. This function will remove all HTML comments and redundant white space.
Example:
$template = "HELL<!-- eraseme -->OW<!-- and:me(yeah) -->ORLD";
$stamp = new Stamp($template);
$stamp->wash();
echo $stamp; // outputs: HELLOWORLD
copyright © 2011 Gabor de Mooij | Stamp PHP Template Library