-
Notifications
You must be signed in to change notification settings - Fork 7.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
DOMXPath::quote(string $str): string #13456
Merged
Merged
Commits on Feb 21, 2024
-
DOMXPath::quote(string $str): string
method to quote strings in XPath, similar to PDO::quote() / mysqli::real_escape_string sample usage: $xp->query("//span[contains(text()," . $xp->quote($string) . ")]") the algorithm is derived from Robert Rossney's research into XPath quoting published at https://stackoverflow.com/a/1352556/1067003 (but using an improved implementation I wrote myself, originally for chrome-php/chrome#575 )
Configuration menu - View commit details
-
Copy full SHA for 1730af1 - Browse repository at this point
Copy the full SHA 1730af1View commit details -
Configuration menu - View commit details
-
Copy full SHA for bedc0d0 - Browse repository at this point
Copy the full SHA bedc0d0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 779bfe1 - Browse repository at this point
Copy the full SHA 779bfe1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9925f4a - Browse repository at this point
Copy the full SHA 9925f4aView commit details -
may be slightly slower but easier to read/maintain
Configuration menu - View commit details
-
Copy full SHA for 74404a6 - Browse repository at this point
Copy the full SHA 74404a6View commit details -
Configuration menu - View commit details
-
Copy full SHA for c17264e - Browse repository at this point
Copy the full SHA c17264eView commit details -
Configuration menu - View commit details
-
Copy full SHA for b85a768 - Browse repository at this point
Copy the full SHA b85a768View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7ad4c91 - Browse repository at this point
Copy the full SHA 7ad4c91View commit details -
Configuration menu - View commit details
-
Copy full SHA for e3fb678 - Browse repository at this point
Copy the full SHA e3fb678View commit details -
Configuration menu - View commit details
-
Copy full SHA for 62a6eed - Browse repository at this point
Copy the full SHA 62a6eedView commit details -
Update ext/dom/tests/DOMXPath_quote.phpt
Co-authored-by: Niels Dossche <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 307a9be - Browse repository at this point
Copy the full SHA 307a9beView commit details -
Configuration menu - View commit details
-
Copy full SHA for 641f01f - Browse repository at this point
Copy the full SHA 641f01fView commit details -
Co-authored-by: Niels Dossche <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 1d935fd - Browse repository at this point
Copy the full SHA 1d935fdView commit details -
Configuration menu - View commit details
-
Copy full SHA for e9d4990 - Browse repository at this point
Copy the full SHA e9d4990View commit details -
Co-authored-by: Niels Dossche <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for f90a244 - Browse repository at this point
Copy the full SHA f90a244View commit details -
Co-authored-by: Niels Dossche <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for a20e67b - Browse repository at this point
Copy the full SHA a20e67bView commit details
Commits on Feb 22, 2024
-
Configuration menu - View commit details
-
Copy full SHA for ce9b737 - Browse repository at this point
Copy the full SHA ce9b737View commit details -
Configuration menu - View commit details
-
Copy full SHA for d930979 - Browse repository at this point
Copy the full SHA d930979View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7c478a1 - Browse repository at this point
Copy the full SHA 7c478a1View commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.