in reply to RFC: Text::Quote::Self - A context-based self-quoting facade for unsafe strings
To encode such strings properly, we have to either (...) or know which strings are safe and which aren't in the presentation layer.
But you already know that: all the strings coming from other layers are potentially unsafe and should be escaped in the presentation layer.
There may be cases where breaking the encapsulation may make your life simpler (passing preformatted data to the presentation layer) or you may like to use a special quoting mechanism (i.e. as_uri). But these should be the exceptions requiring special actions, no the other way around.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: RFC: Text::Quote::Self - A context-based self-quoting facade for unsafe strings
by Dallaylaen (Chaplain) on Jan 19, 2016 at 13:11 UTC |