[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 14:28:26 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: new
Priority: normal | Milestone: Awaiting Review
Component: Formatting | Version:
Severity: normal | Resolution:
Keywords: reporter-feedback | Focuses:
-------------------------------+------------------------------
Changes (by TobiasBg):
* keywords: => reporter-feedback
* version: 6.4.2 =>
Comment:
Hi @jani20,
thanks for your report!
However, I can't seem to reproduce this...
When I add the code
{{{#!php
echo esc_html( "test’" );
}}}
in an admin page, I correctly get `test’` as the output.
Can you maybe provide a more detailed code example that is not working for
you?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/60295#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list