WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: Quotes Collection] leading slash escape added to some characters (6 posts)

  1. helloari
    Member
    Posted 4 years ago #

    whenever i add a quote (") quotes-collection is adding a leading slash to it.
    so
    ”help me"
    becomes
    \”help me\"

    i am guessing this is a 2.9.1 incompatibility. when i use html escape codes (ὕ) those work fine.

    thanks again for an excellent plugin.

    http://wordpress.org/extend/plugins/quotes-collection/

  2. dbirlew
    Member
    Posted 4 years ago #

    Same problem for me. Using HTML codes in place of special characters works. For reference:

    http://www.ascii.cl/htmlcodes.htm

  3. 8thheaven
    Member
    Posted 4 years ago #

    had a problem with apostrophe so I changed it to "& # 39;" or "& # 146;"

    Quotation marks would be "& # 34;"
    or left "& # 147;" and right "& # 148;"

    (NOTE - USE THE CODES INSIDE QUAOTATION MARKS & REMOVE SPACES)

    you can find more HTML numerics codes here: http://www.osdata.com/system/physical/charcode.htm

  4. helloari
    Member
    Posted 4 years ago #

    i switched to "Stray Random Quotes" and it works well.

  5. SriniG
    Member
    Posted 4 years ago #

    This is solved in version 1.3.8. Anybody still having this issue, please report back.

  6. Gabriel Serafini
    Member
    Posted 3 years ago #

    Hi SriniG,

    Thanks for the great plugin. I found one other place where the quotes need to have slashes stripped.

    In the quotescollection_txtfmt function (line 119) I added this line:
    $value = stripslashes($value);
    and it solved slashes being included when not doing ajax quotes for me:

    function quotescollection_txtfmt($quotedata = array())
    {
    	if(!$quotedata)
    		return;
    
    	foreach($quotedata as $key => $value){
    		$value = " {$value} ";
    		$value = ereg_replace(":space::alpha:+://[^<>[:space:]]+[[:alnum:]/]"," <a href=\"\\">\</a>", $value);
    		$value = ereg_replace(":alpha:+://[^<>[:space:]]+[[:alnum:]/]:space:","<a href=\"\\">\</a> ", $value);
    		$value = stripslashes($value);
    		$value = wptexturize(str_replace(array("\r\n", "\r", "\n"), '', nl2br(trim($value))));
    		$quotedata[$key] = $value;
    	}
    
    	return $quotedata;
    }

    If this doesn't break other functionality, maybe we can get that added to the core plugin?

    Thanks again,
    Gabriel

Topic Closed

This topic has been closed to new replies.

About this Topic