Handling "&" in select tag user value (v2023)

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
sclg
User
Posts: 149
Location: UK

Handling "&" in select tag user value (v2023)

Post by sclg »

I have a select tag where one of the user values is L&G
However, the & is getting changed to its HTML entity and what actually gets put in the database field is L&G

How do I get round this??

Thanks


arbei
User
Posts: 9389

Post by arbei »

You may set the field object's Raw property as true. For v2024, you may simply use the RemoveXSS Extension.


sclg
User
Posts: 149
Location: UK

Post by sclg »

Thanks. Presumably using something like $this->MyField->Raw = true
but in what server event?


mobhar
User
Posts: 11736

Post by mobhar »

You may use Page_Load server event.


Post Reply