Welcome! » Log In » Create A New Profile

HTML Purifier in Java

Posted by Martin 
Martin
HTML Purifier in Java
October 16, 2008 05:15AM

Is it possible to get HTML Purifier written in JAVA?

Re: HTML Purifier in Java
October 16, 2008 08:21AM

nothings impossible, but lol it's a php script, who's gonna rewrite it to JAVA? who knows JAVA enough to do it?

would it not be easier to connect to purifier API by use of JAVA, rather than rewriting it into a java language.

Re: HTML Purifier in Java
October 16, 2008 01:22PM

Possible? Certainly. Currently available? No.

HTML Purifier is a large enough library that I've consistently had developers underestimate the work involved with porting it to another language. Many have tried, none have succeeded. Your best bet, if you want to use HTML Purifier in Java, is to have Java call the PHP interpreter.

Re: HTML Purifier in Java
December 12, 2008 02:06PM

You may want to try Resin Quercus (a PHP interpreter for the JVM). It is complete enough to be able to run Drupal, but I never tested with HTMLPurifier.

Author:
Your Email:

Subject:

HTML input is enabled. Make sure you escape all HTML and angled brackets with < and >.

Auto-paragraphing is enabled. Double newlines will be converted to paragraphs; for single newlines, use the pre tag.

Allowed tags: a, abbr, acronym, b, blockquote, caption, cite, code, dd, del, dfn, div, dl, dt, em, i, ins, kbd, li, ol, p, pre, s, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, var.

For inputting literal code such as HTML and PHP for display, use CDATA tags to auto-escape your angled brackets, and pre to preserve newlines:

<pre><![CDATA[
Place code here
]]></pre>

Power users, you can hide this notice with:

.htmlpurifier-help {display:none;}

Message: