-
-
Notifications
You must be signed in to change notification settings - Fork 15.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Search JSON doesn't escape back slashes and breaks search #1279
Comments
Thanks for the report. I'm surprised by this bug, because the title does get escaped. Most other characters seem to be correctly escaped, but it looks like a backslash needs to be escaped manually with another backslash (using |
@monksy are you able to test to see whether this is a bug resulting from this theme or not? |
beautiful-jekyll/_includes/search.html
Line 14 in e5ababb
This should be able to escape back slashes in the title. Since it doesn't, this creates invalid json and breaks the parsing:
Example:
Produces: SyntaxError: JSON.parse: bad control character in string literal
The text was updated successfully, but these errors were encountered: