Created
March 13, 2019 05:36
-
-
Save ron623/a4c376519f6c43e7ea97e3f9465f7c54 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// htmlspecialchars関数を呼び出す用の関数 | |
function e(string $str, string $charset = 'UTF-8'): string { | |
return htmlspecialchars($str, ENT_QUOTES | ENT_HTML5, $charset); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment