Quantcast
Channel: ウェブ、ショウジン
Viewing all articles
Browse latest Browse all 10

WordPressで改行文字をbrに置換、そしてサニタイズする

0
0
カスタムフィールドで用意したフィールドで、html要素はエスケープ(サニタイズして無害化)、改行は改行文字をbr要素に置換して出力したいという状況に遭ったのですが、nl2br(PHPの関数)とesc_html(WordP […]

Viewing all articles
Browse latest Browse all 10

Latest Images

Trending Articles





Latest Images