[wp-trac] [WordPress Trac] #60295: esc_html() function returns an empty string when the last character of the input string variable is ASCII 145 or 146
WordPress Trac
noreply at wordpress.org
Fri Jan 19 20:13:20 UTC 2024
#60295: esc_html() function returns an empty string when the last character of the
input string variable is ASCII 145 or 146
-------------------------------+----------------------
Reporter: jani20 | Owner: (none)
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: Formatting | Version:
Severity: normal | Resolution: invalid
Keywords: reporter-feedback | Focuses:
-------------------------------+----------------------
Comment (by jani20):
Thank you @dmsnell for your thorough explanation. Have a great weekend!
Replying to [comment:4 dmsnell]:
> Glad to hear it, @jani20. I'm going to close this ticket as invalid
because I think that's the way to say "this isn't a bug with WordPress
directly". It sounds like the culprit is telling WordPress that some text
is UTF-8 when it's invalid.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/60295#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list