Skip to content
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

Single Quotes in playlist name. #80

Closed
DominicFindlay opened this issue Feb 27, 2022 · 3 comments · Fixed by #82
Closed

Single Quotes in playlist name. #80

DominicFindlay opened this issue Feb 27, 2022 · 3 comments · Fixed by #82

Comments

@DominicFindlay
Copy link
Contributor

Having an issue where it cannot find an existing playlist which has a single quote in it's name. (Possibly may have same issue with other fields?).

I have tried looking this up, but not really sure if there's anything simple I can do to change the string, tried /' '' , or is this just a limitation of xPath or js in general?

@fawazahmed0
Copy link
Owner

try escaping the quote something like this \'

@DominicFindlay
Copy link
Contributor Author

DominicFindlay commented Feb 27, 2022

Hi, Yeah I've tried that.

This is the error message that I got it to print out

Error: Evaluation failed: DOMException: Failed to execute 'evaluate' on 'Document': The string '//*[normalize-space(text())='Name\'s Driving']' is not a valid XPath expression.

Where Playlist name is Name\'s Driving
Also didn't work for Name/'s Driving

@fawazahmed0
Copy link
Owner

fawazahmed0 commented Feb 27, 2022

Please refer this you might need to use concat function or something else.
Also if you can create a PR to fix this issue, I will be happy to merge it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants