WordPress.org

Support

Support » Plugins and Hacks » [Plugin: Quotes Collection] leading slash escape added to some characters

[Plugin: Quotes Collection] leading slash escape added to some characters

Viewing 5 replies - 1 through 5 (of 5 total)
  • Same problem for me. Using HTML codes in place of special characters works. For reference:

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

    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

    i switched to “Stray Random Quotes” and it works well.

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

    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

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Plugin: Quotes Collection] leading slash escape added to some characters’ is closed to new replies.
Skip to toolbar