On Fri, Nov 21, 2003 at 07:55:05PM +0100, Wouter van Vliet wrote:
:
: (.. long bunch of HTML ..)
: Jay asked <?=$Question?>, then Tom said <? echo $Answer; ?>. <?php
I don't like this because it doesn't protect your content from being
misinterpreted. It should be more like:
Jay asked <?php echo htmlentities($Question); ?>, then...
Of course you could call htmlentities() on all of your variables in a
previouw block. But then you cannot use the variables again unless you
undo it with html_entity_decode(). It's a bit of a mess.
Also, I find inlining to be less flexible and less extensible than some
kind of template system.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php