> if I see it correctly, this is just a framework for defining callbacks to a escaping operator, without a implementation of "html" and "js"? > Not sure if this helps. There is a default escaping for HTML. If there is no registered handler for 'html' context, it calls htmlspecialchars($str, ENT_QUOTES | ENT_SUBSTITUTE).
- [PHP-DEV] [RFC] New operator for context-dependent escap... Michael Vostrikov
- Re: [PHP-DEV] [RFC] New operator for context-depend... Thomas Bley
- Re: [PHP-DEV] [RFC] New operator for context-de... Michael Vostrikov
- Re: [PHP-DEV] [RFC] New operator for context-depend... Dan Ackroyd
- Re: [PHP-DEV] [RFC] New operator for context-de... Michael Vostrikov
- Re: [PHP-DEV] [RFC] New operator for contex... Michael Vostrikov
- Re: [PHP-DEV] [RFC] New operator for contex... Dan Ackroyd
- Re: [PHP-DEV] [RFC] New operator for co... Marcio Almada
- Re: [PHP-DEV] [RFC] New operator for context-depend... Marcio Almada
- Re: [PHP-DEV] [RFC] New operator for context-de... Lauri Kenttä
- Re: [PHP-DEV] [RFC] New operator for contex... Michael Vostrikov
- Re: [PHP-DEV] [RFC] New operator for co... Niklas Keller
- Re: [PHP-DEV] [RFC] New operator f... Michael Vostrikov