« 目次

Movable Type オブジェクト・リファレンス

MT::Sanitize

概要

use MT::Sanitize;
my $html = <<HTML;
<a name="foo.html" onclick="evilJS()">foolink</a>
HTML
my $str = MT::Sanitize->sanitize($html, 'a href');
## $str is now <a href="foo.html">foolink</a>

Copyright © 2001-2006 Six Apart, Ltd. All Rights Reserved.