by emayljames · 6y ago · 0 comments
Alert: Bob & Jane O'Brien just commented on your recent post
If you store HTML in your database, now you have to convert from that to whatever you're outputting to later. And you haven't covered the dangerous characters for other contexts.
Just store whatever the user sent you. When outputting to various formats, convert accordingly.