Support

Account

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