Re: New escaped output operator

From: Date: Sun, 19 Jun 2016 17:14:57 +0000
Subject: Re: New escaped output operator
References: 1 2 3 4 5 6 7 8 9 10  Groups: php.internals 
Request: Send a blank email to internals+get-94129@lists.php.net to get a copy of this message
On 19/06/16 10:01, Marco Pivetta wrote: > This basically means that you lack basic understanding of how escaping and > user input are to be handled. > Most apps out there about getting a bunch of text from the user, then > rendering it somewhere else in the app. > Cleaning user input just leads to frustration and a big mess in most > scenarios, which is why we're all talking about escaping output instead. > This is not "cleaning" either, it's escaping, which is a non-destructive > and reversible operation (which is why it works so well). Well we have to disagree ... simply expecting htmlspecialchars() to fix all your problems without proper handling of the input text is 'the big mess' and there is NO need to simply slap htmlspecialchars() onto properly built data so the idea that <?= should automatically add it is totally pointless! -- Lester Caine - G8HFL ----------------------------- Contact - http://lsces.co.uk/wiki/?page=contact L.S.Caine Electronic Services - http://lsces.co.uk EnquirySolve - http://enquirysolve.com/ Model Engineers Digital Workshop - http://medw.co.uk Rainbow Digital Media - http://rainbowdigitalmedia.co.uk

« previous php.internals (#94129) next »