Home » Memorandum » 2006 » May » 14

MyTextSanitizerのhtmlSpecialChars考 (1)

----Sorry!! This content is only for Japanese----


Comments

RSS feed for comments on this post.

  1. $text = preg_replace(array("/&([^;]*[& =])/", "/&([^;]*$)/"), array("&\\1","&\\1"), $text);

    (実体参照のampersand以外を探してるつもり)
    上記のような変換は無意味でしょうか。
    (http://okuhiki.dip.jp/modules/newbb/viewtopic.php?topic_id=65&forum=3
    の、下から二つめの怪変部分です。)

    Comment by Okuhiki — 2006年5月15日(Monday) @ 09時22分43秒

  2. 【PHPネタ】htmlspecialchars関数はサニタイズ関数?
    EUCの補助漢字をPHPでどのように処理するかを調べていて、1年前に自分で書いた

    Trackback by WEBプログラミング NOW! — 2007年12月25日(Tuesday) @ 10時06分41秒

Leave a Comment

Sorry, the comment form is closed at this time.


19 queries. 0.017 sec.
Powered by WordPress Module based on WordPress ME & WordPress

flagflag

XOOPS初心者サーチ


Add to Google

Xoops Cube Project

XOOPS Cube Project Site

XC Developers Ring

http://img.simpleapi.net/small/http://www.peak.ne.jp/xoops/ SIZE:128x128(7.6KB)