• Not sure if this is theme specific (I’m using X theme) but when Woocommerce is enabled and I have an apostrophe in my product short description, the page breaks.

    Edit: I’ve temporarily fixed the issue by wrapping get_the_excerpt() in both esc_html and addslashes. Using just one didn’t work. Modified line 193 of functional.php:

    $description = addslashes(esc_html(get_the_excerpt()));

    • This topic was modified 7 years, 6 months ago by tr0picana.
    • This topic was modified 7 years, 6 months ago by tr0picana.
    • This topic was modified 7 years, 6 months ago by tr0picana.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author arthur-gareginyan

    (@arthur-gareginyan)

    Thanks for reaching out and providing feedback of an issue you’re seeing.

    Yes, you right, this is a specific to the theme you using. But I will definitely check my plugin, and if I find out that I can do something to fix this in my plugin, then I will definitely look into a fix.

    Thread Starter tr0picana

    (@tr0picana)

    Cheers!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Having an apostrophe in Product short description breaks site’ is closed to new replies.