encode_php
モディファイアを付与したファンクションタグの値を PHP コード内で利用できるように適切にエスケープ処理をおこないます。
指定できる値
- q
シングルクォーテーションで括られた文字列の中で使用できるようにエスケープします。
ダブルクォーテーションで括られた文字列の中で使用できるようにエスケープします。
- here
ヒア・ドキュメントの中で使用できるようにエスケープします。
使い方
<?php $the_title = '<$MTEntryTitle encode_php="q"$>'; $the_author = "<$MTEntryAuthorDisplayName encode_php="qq"$>"; $the_text = <<<EOT <$MTEntryText encode_php="here"$> EOT ?>
encode_php と関連のあるグローバルモディファイア (6)
- encode_html
- encode_js
- encode_php
- encode_sha1
- encode_url
- encode_xml
- escape