Escaping htmlentities
-
Hi,
I’m using 2 radio button merge fields to record consent for privacy and emails – the GDPR Compliance for Mailchimp plugin only provides one checkbox for email consent so I can’t use that.The radio button option ( I convert to checkboxes via javascript ) includes a single quote which Mailchimp converts to html entities
& #39;
The form submission is failing as the json sent to Mailchimp is escaping it\\ & #39;
Example of json response:
Value must be one of: I agree to my personal data being stored by MailChimp and used for the distribution of the XXXs& #39; weekly insights newsletter. (not I agree to my personal data being stored by MailChimp and used for the distribution of the XXXs\\& #39; weekly insights newsletter.)
Is there anything I can do in a filter to correct this?
Also, is there any way to add html to the form before the submit button other than javascript?
Thanks
- The topic ‘Escaping htmlentities’ is closed to new replies.