This hack have a good concept; but it is not the best way to preserve bandwidth...
For example; if your site is not webmaster oriented, your members will be unlikely to post as much HTML/other contents that needs trimming, thus it wouldn't affect your site as much. If your site is webmaster oriented, you will want to preserve the code the way it is (for demonstration and code representation purpose). The members will have a hard time trying to learn:
Code:
<?
if ( !$happy ) {
print $sad_string;
}
?>
if they don't know php and all they see is
Code:
<? if (!$happy){print $sad_string;}?>
And that's only a basic example, think what chaos it'd do with stuff like:
Code:
if (!$a):$b or die(print($c))
is presented to a newbie?