PHP的HTML内容过滤脚本 htmLawed

fmms 13年前
     <p>htmLawed 是一个用来对用户输入的文本内容进行过滤,使之更加安全而且符合标准的PHP脚本。过滤的内容可人工定制,可防止跨站脚本工具(XSS)。htmLawed 可限制某些标签、属性以及URL协议。</p>    <ul>     <li>make HTML markup in text secure and standard-compliant</li>     <li>process text for use in HTML, XHTML or XML documents</li>     <li>restrict HTML elements, attributes or URL protocols using black- or white-lists</li>     <li>balance tags, check element nesting, transform deprecated attributes and tags, make relative URLs absolute, etc.</li>     <li><strong>fast, highly customizable, well-documented</strong></li>     <li>single, 47 kb file</li>     <li>simple HTML Tidy alternative</li>     <li>free and licensed under LGPL </li>     <li>use to filter, secure & sanitize HTML in blog comments or forum posts, generate XML-compatible feed items from web-page excerpts, convert HTML to XHTML, pretty-print HTML, scrape web-pages, reduce spam, remove XSS code, etc.</li>    </ul>    <p><img alt="PHP的HTML内容过滤脚本 htmLawed" src="https://simg.open-open.com/show/f67afe1a7fa1293318ca116087888616.png" width="640" height="480" /><br /> <br /> </p>    <p><strong>项目主页:</strong><a href="http://www.open-open.com/lib/view/home/1326945894202" target="_blank">http://www.open-open.com/lib/view/home/1326945894202</a></p>