On Tuesday, October 4, 2016 at 9:40:03 AM UTC-7, Korvin Szanto wrote:
>
> Are you thinking like a text filter PSR or more of an output management 
> PSR? It sounds like a single interface with a single method to me: 
> `FilterInterface::filter($mixed): mixed;`.
>
>>
>> There's many different forms of filtering:
* Pass filtering (removing of illegal sequences)
* Replacement filtering (transformation of illegal sequences with 
placeholders)
* Panic filtering (raise an exception on illegal sequences)
* Escaping (included because it's often conflated with filtering)

There are whitelist and blacklist variants of these.   There are also 
context sensitive issues for many of these; What's illegal in a JS context 
isn't the same as an HTML text context, or an HTML attribute context.

I don't know that we need standards for these permutations, but I imagine 
it's a little more than "single interface with a single method".

-Sara

-- 
You received this message because you are subscribed to the Google Groups "PHP 
Framework Interoperability Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/php-fig/19262cbb-3697-4768-bcec-4a6ad16f2ff0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to