Home › Forums › Bug Reports › Regression: Backslashes stripped in WYSIWYG › Reply To: Regression: Backslashes stripped in WYSIWYG
Hi @figureone
Thanks mate. I really appreciate your help on this one, even though I can’t offer a quick solution.
Yes, I think the best solution is to offer an option for the field. But perhaps we could do this as a ‘non UI’ option such as a filter for the wysiwyg field.
Something like:
<?php
apply_filter('acf/fields/wysiwyg/strip_slashes', 'my_wysiwyg_strip_slashes', 10, 1);
function my_wysiwyg_strip_slashes( $strip_slashes )
{
// default is true
$strip_slashes = false;
return $strip_slashes;
}
?>
I’ll add this to the to-do and re-read over this entire thread to make sure I haven’t missed something.
As for timings, I’m extremely busy for the next 2 weeks, but then I’m going back to full time dev on ACF! So this will definitely be introduced into the core soon.
Thanks a million
Cheers
E
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.