WordPress.org

Ready to get started?Download WordPress

Forums

WP-Blocks
Apostrophe slash (2 posts)

  1. isign4jc
    Member
    Posted 2 years ago #

    I love this plugin. However, I am having one small issue with it. When I enter an apostrophe, it gives a backslash along with it. So, instead of boy's it says boy\'s. Any ideas on why this is happening?

    http://wordpress.org/extend/plugins/wp-blocks/

  2. stayfq
    Member
    Posted 1 year ago #

    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']);

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags