3 ms·
It's not a poor example, and it's not about sending the document without tags. It's about whether special characters should be escaped, and the answer depends
by defen 15y ago
It's not a poor example, and it's not about sending the document without tags. It's about whether special characters should be escaped, and the answer depends on the Content-Type that the client requested.
- Peaker 15y agoA framework could use static types to tag whether it is escaped or not. Then, the framework could map different kinds of requests (e.g: raw content vs. html content) to different types. Then, the only way to convert between the types are functions that do proper escaping.