Support » Plugin: Wp Cookie Choice » apostrophe problem

  • Hi,

    1)I have an apostrophe problem present in the message.
    Whenever I save the changes (Administrator part), the code adds backslashes to each apostrophe.

    Example with French text:
    I take the following message: “J’ai perdu”
    I backup.
    The message is now “J \’ai perdu”
    I backup without change anything.
    The message is now “J\\\’ai perdu’

    But also there is a problem with the display.
    The script shows me the HTML Code apostrophe.

    The following message is displayed on the site: (without space) : “J& # 3 9 ;ai perdu”

    2)Also I had to delete the in file js/cookiechoices.js the background color that is hard-coded.
    Now I can change the style of the bar with a css.

    Best Regard

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Marcus Franke


    HI ichigo84.

    We escape the whole text for injecting bad content.
    So we will change these function for special Chars asap.

    Thank you for the feedback.

    Plugin Author Marcus Franke


    You use the single quote that have a for code injection.
    pls use the ` or ´.

    The Style is hardcoded by Google himself.

    So when we have the time. We will add a Color Picker and a new location ( Bottom)

    Best regards


    Thanks, with the character ´ the message is good.

    But, why do not use str_replace function to replace ‘ by ´ ?

    Best Regard.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘apostrophe problem’ is closed to new replies.