Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Why are the ampersands disappearing when I use a textarea tag?

0
Posted

Why are the ampersands disappearing when I use a textarea tag?

0

Your CGI should manually convert leading &’s into the character entity for ampersands, otherwise character entities will get eaten by textarea tags and text input controls; e.g. the user originally enters an < entity (as in this FAQ entry); if you send this back to the user for editing, the browser will convert it to a < character, unless you escape the leading ampersand with &).

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.