-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
HTML API: Add custom text decoder #6387
Commits on May 15, 2024
-
HTML API: Add custom text decoder.
Provide a custom decoder for strings coming from HTML attributes and markup. This custom decoder is necessary because of deficiencies in PHP's `html_entity_decode()` function: - It isn't aware of 720 of the possible named character references in HTML, leaving many out that should be translated. - It isn't able to decode character references in data segments where the final semicolon is missing, or when there are ambiguous characters after the reference name but before the semicolon. This one is complicated: refer to the HTML5 specification to clarify. This decoder will also provide some conveniences, such as making a single-pass and interruptable decode operation possible. This will provide a number of opportunities to optimize detection and decoding of things like value prefixes, and whether a value contains a given substring.
Configuration menu - View commit details
-
Copy full SHA for 3ff78cc - Browse repository at this point
Copy the full SHA 3ff78ccView commit details -
Configuration menu - View commit details
-
Copy full SHA for 401d30f - Browse repository at this point
Copy the full SHA 401d30fView commit details
Commits on May 24, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 4f5f21e - Browse repository at this point
Copy the full SHA 4f5f21eView commit details
Commits on May 25, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 72aeccd - Browse repository at this point
Copy the full SHA 72aeccdView commit details
Commits on May 28, 2024
-
Configuration menu - View commit details
-
Copy full SHA for d60e320 - Browse repository at this point
Copy the full SHA d60e320View commit details -
Configuration menu - View commit details
-
Copy full SHA for db384b9 - Browse repository at this point
Copy the full SHA db384b9View commit details -
Configuration menu - View commit details
-
Copy full SHA for be8b2a5 - Browse repository at this point
Copy the full SHA be8b2a5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8f9b076 - Browse repository at this point
Copy the full SHA 8f9b076View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2d3dee1 - Browse repository at this point
Copy the full SHA 2d3dee1View commit details -
Configuration menu - View commit details
-
Copy full SHA for b559320 - Browse repository at this point
Copy the full SHA b559320View commit details -
Configuration menu - View commit details
-
Copy full SHA for 53dafce - Browse repository at this point
Copy the full SHA 53dafceView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3bf0434 - Browse repository at this point
Copy the full SHA 3bf0434View commit details -
Configuration menu - View commit details
-
Copy full SHA for edbc0b0 - Browse repository at this point
Copy the full SHA edbc0b0View commit details
Commits on May 29, 2024
-
Configuration menu - View commit details
-
Copy full SHA for fd83c46 - Browse repository at this point
Copy the full SHA fd83c46View commit details -
Configuration menu - View commit details
-
Copy full SHA for 59671d6 - Browse repository at this point
Copy the full SHA 59671d6View commit details -
Configuration menu - View commit details
-
Copy full SHA for ab672e7 - Browse repository at this point
Copy the full SHA ab672e7View commit details -
Update optional $case_sensitivity param types
?string (nullable string) was used for these types. The type should be string, optionality can appear in the param description but is derived from a default argument.
Configuration menu - View commit details
-
Copy full SHA for 2e2fb8b - Browse repository at this point
Copy the full SHA 2e2fb8bView commit details -
?Type is a nullable Type, not an optional parameter. Identify optional parameters in the @param description.
Configuration menu - View commit details
-
Copy full SHA for d38df36 - Browse repository at this point
Copy the full SHA d38df36View commit details -
Use default argument for read_character_reference at
Instead of a nullable parameter that updates to `0` in the body of the function when null, use a default argument `0`, update the @param type and remove the null check and set from the function body.
Configuration menu - View commit details
-
Copy full SHA for 9931e09 - Browse repository at this point
Copy the full SHA 9931e09View commit details -
Add additional attribute prefix tests
Add mixed case and non-matching test cases
Configuration menu - View commit details
-
Copy full SHA for 95820aa - Browse repository at this point
Copy the full SHA 95820aaView commit details -
Change byte_length_of_matched_token to matched_token_byte_length
Update the parameter name and description to align with the descriptions of analogous parameters used in WP_Token_Map methods.
Configuration menu - View commit details
-
Copy full SHA for 47dcdc1 - Browse repository at this point
Copy the full SHA 47dcdc1View commit details
Commits on May 31, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 0c0b36c - Browse repository at this point
Copy the full SHA 0c0b36cView commit details
Commits on Jun 2, 2024
-
Configuration menu - View commit details
-
Copy full SHA for f594b87 - Browse repository at this point
Copy the full SHA f594b87View commit details