• Hi there and thank you for this useful plugin.

    I have an annoing problem that when I use an apostrophe in error messages or email templates the text is transformed with many backslash.

    Example:

    L’account non è stato ancora attivato. Controlla la tua email e conferma l’iscrizione.

    After saving:

    L\’account non è stato ancora attivato. Controlla la tua email e conferma l\’iscrizione.

    After a second saving:

    L\\’account non è stato ancora attivato. Controlla la tua email e conferma l\\’iscrizione.

    And so on.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Shane_O

    (@shane_o)

    Hi @jenkin27.

    Have you been able to fix this problem?

    Cheers
    Shane

    Thread Starter jenkin27

    (@jenkin27)

    Hi @shane_o ,

    the workaround was avoiding apostrophe, but in Italian is not so simple… ??
    I just try with the latest version of the plugin (v1.0.66) and the bug is the same as described.

    Shane_O

    (@shane_o)

    I found a fix.
    Open the includes/functions.php file.
    At the bottom, find the line $value = wp_kses_post( $value );
    Add a line after this and add $value = stripslashes( $value );
    BTW, I’m using 1.0.67 from github.
    Just remember that if the plugin is updated, you may have to apply the fix again.
    I hope this helps.
    Cheers
    Shane

    • This reply was modified 3 years ago by Shane_O.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Many backslashes added before apostrophes in email templates’ is closed to new replies.