WordPress.org

Support

Support » Plugins and Hacks » WP-Blocks » [Plugin: WP-Blocks] Apostrophe slash

[Plugin: WP-Blocks] Apostrophe slash

Viewing 1 replies (of 1 total)
  • Hey, if you’re still wondering (and this issue was driving me nuts), here is the solution.

    go in and edit the plugin -> search for a function named

    function get_wrapped_block_content( $data ) {
        $block = wp_kses_stripslashes($data['html_prepend']).wp_kses_stripslashes($data['content']).wp_kses_stripslashes($data['html_append']);
    
    		return do_shortcode($block);
    }

    and add this line before the return statement:

    $block = stripslashes($data['html_prepend']).stripslashes($data['content']).stripslashes($data['html_append']);
Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: WP-Blocks] Apostrophe slash’ is closed to new replies.
Skip to toolbar