Topic: Why are database values converted to HTML?
Using version 2.4.6
I am seeing things like "&" in my test database while working on this extension and I was wondering if I accidentally pasted that into a name field, but when I create a new customer by entering "Testing Adam & Willy", this is what I get in the database:
[7] => Array
(
[branch_ref] => testaw
[debtor_ref] => testaw
[name] => Testing Adam & Willy <-- not the "&" in place of an ampersand.
[br_name] => Testing Adam & Willy
[group_no] => 0
)
Maybe this is just an opinion I've formed after decades of writing business applications, but in my experience, you don't alter the values that are stored in the database. You alter them to suit your display method when they are displayed.
Should I write all of my code to convert HTML entities into their actual values for display in things that don't use HTML, or is this a bug that may someday be fixed?
Forgive me for having a strong opinion on this subject, but I really hope this was not intentional.