How can I use apostrophes in has-text() while keeping AdGuard compatibility?
#4125
Answered
by
gorhill
Stevoisiak
asked this question in
Q&A
|
I have an HTML element I want to filter with text that contains an apostrophe. If I use If I exclude the quotes, the filter works in AdGuard but fails in uBO with Invalid Filter: ")" is expected. I can get around the issue by using an Escaping the single quote makes matching fail in both AG and uBO. Is there a way to match text that contains an apostrophe in a way that works in both uBlock Origin and AdGuard? |
Answered by
gorhill
Sep 15, 2026
Replies: 1 comment 3 replies
|
Maybe try |
3 replies
Answer selected by
Stevoisiak
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Maybe try
example.com##p:has-text(/Can\x27t load ad/)-- I didn't test in AdGuard.