2 ms·
While I agree about String. EscapedString is conflating rendering/output with data model which is the core of the issue. Application developers should not care
by xxs 7y ago
While I agree about String. EscapedString is conflating rendering/output with data model which is the core of the issue. Application developers should not care to touch escaping, nor text rendering on their right own for formats like xml, json, sql, etc.
There should not be xml build by concatenation, instead use DOM + proper render/transformer/write. Same for SQL, prepared statements + bindings...