coding-standard
coding-standard copied to clipboard
Ensure ENT_QUOTES is always provided to html_entity_decode
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.
ENT_QUOTES | ENT_HTML5 is needed to decode ' too