Comment Comment by ec109685 Output sanitization is what you want to bet on. Only your website / app knows where a piece of data will be displayed, so that is when you should apply appropriate encoding of the output stream. parent ec109685 7 years ago