Answer the question
In order to leave comments, you need to log in
How dangerous is an ampersand in html output?
htmlspecialchars replaces "&" with "&"(The toaster is also buggy), but I can't figure out why it's dangerous. Editors (humans) use "& nbsp;", "& mdash;" (Toaster!!) and stuff like that, all the output is of course in htmlspecialchars, or what are alternatives from frameworks, and of course it's all replaced by " " in the text. How is it usually done here?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question