Suggestion for the README - add a section on how devs can amend their phpcs.xml (or ruleset.xml) file to allow whitelist_html() as a valid escaping function when checking PHP_CodeSniffer + WordPress Coding Standards sniffs.
I'm sure @JDGrimes can give you the correct few lines it would need, but I vaguely think it would be something like:
Yes, that looks right. Although I think maybe that print_whitelist_html() doesn't need to be added to the printing function list, since it automatically escapes its output.
Suggestion for the README - add a section on how devs can amend their
phpcs.xml
(orruleset.xml
) file to allowwhitelist_html()
as a valid escaping function when checking PHP_CodeSniffer + WordPress Coding Standards sniffs.I'm sure @JDGrimes can give you the correct few lines it would need, but I vaguely think it would be something like:
Otherwise, WPCS is going to be complaining every time
whitelist_html()
andprint_whitelist_html()
are used.