coding-standard icon indicating copy to clipboard operation
coding-standard copied to clipboard

Ensure ENT_QUOTES is always provided to html_entity_decode

Open ghnp5 opened this issue 4 years ago • 1 comments

Hello,

Would it be possible to create a rule to ensure an argument is always present on some functions?

What I'm trying to accomplish is to ensure ENT_QUOTES is always provided to html_entity_decode.

html_entity_decode($string, ENT_QUOTES);

Just not sure what would be the best way to approach this - whether with some rule that can work for any function, or some rule that specifically targets html_entity_decode and htmlentities..?

Thank you very much.

ghnp5 avatar Apr 17 '21 23:04 ghnp5

ENT_QUOTES | ENT_HTML5 is needed to decode ' too

dg avatar Apr 27 '21 11:04 dg