Page 1 of 2
HTMLPurifier 1.0.0beta released!
Posted: Wed Aug 16, 2006 9:06 pm
by Ambush Commander
Okay. So
all those other forum topics you've been seeing for the past month or so were all on this library. HTMLPurifier.
Website wrote:HTMLPurifier is the premiere PHP solution for all your HTML filtering needs. Tired of forcing users to use BBCode or some other obscure custom markup language due to the current landscape of deficient or hole-ridden HTML filterers? Look no further: HTMLPurifier will not only remove all malicious code (the stuff of XSS), it will also make sure the HTML is standards compliant.
The Beta version is finally out and you can
grab it here. Tell your friends about it! Blog about it! The more issues we find and the more testing we do, the faster the stable version can get released.
(I hope this isn't spam).
Posted: Wed Aug 16, 2006 10:08 pm
by RobertGonzalez
Yo, AC, have you condidered putting a 'View Source' option on your site so that people can see the source without having to download it? Kinda like Chris did with Swift.
Posted: Wed Aug 16, 2006 10:22 pm
by Ambush Commander
Yep, browse Subversion anonymously. Example:
http://hp.jpsband.org/svnroot/htmlpurif ... rifier.php
Should I make that more obvious?
Posted: Wed Aug 16, 2006 10:35 pm
by RobertGonzalez
For those geeks like me that look right past that SubVersion notice... doh.
I was thinking along the lines of
something like this. Although, even a brief note next to the subversion link stating 'View the source here' type of thing would be helpful.
Oh yeah, sorry for sounding stupid.
Posted: Wed Aug 16, 2006 10:39 pm
by Ambush Commander
Ah... the library is too big to do something like that. You'd have over 200kbs of source code.
However, once I kick Doxygen enough, I'll have documentation + highlighted cross-referenced code, which is always a goody (and is why I'm not using PHPDoc)
Posted: Wed Aug 16, 2006 10:48 pm
by Luke
Hey! Nice work, Ambush! I just downloaded. I'm looking forward to tinkering with it later tonight

Posted: Wed Aug 16, 2006 10:52 pm
by Ambush Commander
Hey! Nice work, Ambush! I just downloaded. I'm looking forward to tinkering with it later tonight
Cool! Just watch out: since it's beta, I haven't really whipped the documentation into shape (besides some end-user stuff).
@Everah: Okay, I whipped Doxygen into shape (by simply uploading the generated files.
http://hp.jpsband.org/doxygen/html/
Here's an example source code page:
http://hp.jpsband.org/doxygen/html/Lexe ... ource.html
Posted: Wed Aug 16, 2006 11:17 pm
by RobertGonzalez
AC, You are a stud. Potential candidate for Code Snippet of the Year... Huh? Way to go buddy. It is awesome.
Posted: Wed Aug 16, 2006 11:19 pm
by Ambush Commander
Thanks. Hmm... now as for whether or not people will start using it...
Posted: Wed Aug 16, 2006 11:22 pm
by bg
do you manually write out the doxygen stuff in your source or does your editor have some sort of feature for documenting using doxygen?
Posted: Wed Aug 16, 2006 11:23 pm
by Ambush Commander
I use Notepad++, so no, it doesn't. However, Doxygen is smart enough to be able to slurp of files with no documentation at all and cross-reference them.
Posted: Thu Aug 17, 2006 12:53 am
by alex.barylski
I've used Doxygen for quite a while now, especially when documenting C++ but never bothered with PHP as I find phpDocumentor does a better job.
Any reason you use Doxygen on php that I might be interested in knowing or just a personal preference???
I enjoyed the fact that Doygen was a binary application which was easy to setup and get going
The more I use phpDocumentor though, the more I like it for what it does

Posted: Thu Aug 17, 2006 7:16 am
by Ambush Commander
Mainly because it's easy to use (last time I tried to use PHPDocumentor it hung my system), generates nice-looking documentation, and the generation of cross-referenced code (which I don't think phpDoc does but I might be mistaken).
Posted: Thu Aug 17, 2006 2:52 pm
by alex.barylski
phpDocumenter seems hit and miss...sometimes I install it no problem and others...nothinh happens...likely something I"m doing wrong but still..
I hate tinkering with tool type scripts, as I don't care about it's internals I just want it to work so I can get going on everything else...
Anyways, I haven't looked, but recall you saying something previously perhaps? about an HTML DOM???
I would be interested in using a DOM for one of my next projects, does your class consist of such a thing?
How big is it? How close to W3C DOM is it? etc, etc...
Preferably I think I'd prefer a small compact DOM as I'm not sure I'd need all the interfaces of DOM2 or DOM3...
Posted: Thu Aug 17, 2006 3:18 pm
by Ambush Commander
DOM, converted into tokens. I rationalize why I don't manipulate the DOM directly in Lexer.php.
phpDocumenter seems hit and miss...sometimes I install it no problem and others...nothinh happens...likely something I"m doing wrong but still..
I hate tinkering with tool type scripts, as I don't care about it's internals I just want it to work so I can get going on everything else...

Well, I took a look at phpDoc and it seems to be working now (from the command line, of course). Trouble is, it takes orders of magnitudes of more time to create the documentation (Doxygen about a minute, phpDocumentor maybe five minutes).