Re: [PHP-DEV] New operator for htmlspecialchars

2013-01-15 Thread Stas Malyshev
Hi! > Hello, > > I created a small ticket to propose a shorter syntax for htmlspecialchars: > > old: > Don't think operator can make sense here, since you can have different options, etc. depending on context. But you could do this if the above is too long for you: function _h($str) { retur

Re: [PHP-DEV] New operator for htmlspecialchars

2013-01-15 Thread David Muir
On 16/01/13 08:22, Thomas Bley wrote: Hello, I created a small ticket to propose a shorter syntax for htmlspecialchars: old: new: or: any comments, pros and cons? https://bugs.php.net/bug.php?id=62574 Best regards, Thomas The problem here is that htmlspecialchars only covers html body