対象となる文字数の urlencode と rawurlencode のような関係ですね
以下引用
htmlentities
(PHP 4, PHP 5, PHP 7)
htmlentities — 適用可能な文字を全て HTML エンティティに変換する
説明
php
1string htmlentities (
2 string $string
3 [, int $flags = ENT_COMPAT | ENT_HTML401
4 [, string $encoding = ini_get("default_charset")
5 [, bool $double_encode = true ]]] )
この関数は htmlspecialchars() と同じですが、 HTML エンティティと等価な意味を有する文字をHTMLエンティティに変換します。
もしデコード (逆の処理) をしたい場合、 html_entity_decode() を使用することができます。
退会済みユーザー
2016/08/01 14:20
2016/08/03 09:13