WPIntell

Source evidence

Bad escape sequence in string

Event SEO: Event Schema / Structured Data: Google Rich Snippet Schema for Event · support · 2026-05-05T15:42:00+00:00

mixedsentiment
mediumseverity
0.84relevance
2replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

5 / 34 rows with source links

14.7% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

29 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
gra104 resolved
Google Search Console identified a “Bad escape sequence in string” error from the script generated by Event Schema. Additionally it says, “items with this issue are invalid. Invalid items are not eligible for Google Search’s rich results.” I’m using Events Manager for my events, and I have a Location that includes a single quote, but it is being converted to a ' character. Therefore, this is appearing in my script: “location”:{“name”:”My Company\'s Name”} instead of like this: “location”:{“name”:”My Company’s Name”} I believe the \' (and maybe the backslash specifically) is causing the error. Can you fix that within the plugin? Thanks! Hello @gra104 , Thank you for reporting this issue. We’ve reviewed it and implemented a fix. Please copy and replace the code from the following file into your setup: https://gist.github.com/Rajat1192/50b9635f87e5801dec8d1562f21c5eef File path: /event-schema/includes/class-event-schema-common.php Once you’ve applied the update, please check again. If the issue still persists, feel free to contact us via our website, and we’ll be happy to assist you further. Hi @rajat1192 , Thanks for the update and quick response. I tested the new code and everything seems to now render correctly in the json script. Will you be releasing a new version of the plugin with this addition? Thanks again!

Comments

2 shown
Rajat Patel 2026-05-05T16:23:00+00:00

Hello @gra104 , Thank you for reporting this issue. We’ve reviewed it and implemented a fix. Please copy and replace the code from the following file into your setup: https://gist.github.com/Rajat1192/50b9635f87e5801dec8d1562f21c5eef File path: /event-schema/includes/class-event-schema-common.php Once you’ve applied the update, please check again. If the issue still persists, feel free to contact us via our website, and we’ll be happy to assist you further.

gra104 2026-05-06T18:42:00+00:00

Hi @rajat1192 , Thanks for the update and quick response. I tested the new code and everything seems to now render correctly in the json script. Will you be releasing a new version of the plugin with this addition? Thanks again!