| | ユーザフォーラムで議論/質問 | マニュアル検索 | ハイライト | ハイライトオフ | ポータル | php spot |
htmlentities(PHP 4, PHP 5) htmlentities — 適用可能な文字を全て HTML エンティティに変換する 説明
string htmlentities
( string $string
[, int $quote_style = ENT_COMPAT
[, string $charset
[, bool $double_encode = true
]]] )
この関数はhtmlspecialchars()と同じですが、 HTML エンティティと等価な意味を有する文字をHTMLエンティティに変換します。 もしデコード (逆の処理) をしたい場合、 html_entity_decode() を使用することができます。 パラメータ
返り値エンコードした文字列を返します。 変更履歴
例
例1 htmlentities() の例
<?php
参考
|
|
各種マニュアル:
PHPマニュアル |
PEARマニュアル |
Smarty(英語)マニュアル |
PHP-GTKマニュアル |
「htmlentities - 適用可能な文字を全て HTML エンティティに変換する」をGoogle検索
|