Skip to content
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

PHPCS Error: Wrong escaping function. HTML attributes should be escaped by esc_attr(), not by esc_html_e() #259

Open
amooreTO opened this issue Jul 29, 2022 · 0 comments

Comments

@amooreTO
Copy link

When running a PHPCS scan, the following error is present:

Wrong escaping function. HTML attributes should be escaped by esc_attr(), not by esc_html_e() (WordPressVIPMinimum.Security.ProperEscapingFunction.htmlAttrNotByEscHTML).

For this line: https://github.com/Yoast/duplicate-post/blob/trunk/src/admin/views/options.php#L247

esc_attr_e should be used instead of esc_html_e

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant