Home › Forums › General Issues › How do I remove adding amp; after &? › Reply To: How do I remove adding amp; after &?
The form input is sanitized by wp_kses_normalize_entities( string $string )
, see:
https://developer.wordpress.org/reference/functions/wp_kses_normalize_entities/.
You can deactivate it by using the kses
option, see:
https://www.advancedcustomfields.com/resources/acf_form/
<?php
acf_form(array(
'fields' => array('res'),
'submit_value' => 'Send',
'updated_message' => __("", 'acf'),
'kses' => false,
));?>
However, it is never a good idea to not sanitize user input. If you pass up on kses
, you should sanitize it some other way that watches out for links and leaves them intact.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.