HTMLPurifier 1.0.0beta released!

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

User avatar
Ambush Commander
DevNet Master
Posts: 3698
Joined: Mon Oct 25, 2004 9:29 pm
Location: New Jersey, US

HTMLPurifier 1.0.0beta released!

Post 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).
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post 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.
User avatar
Ambush Commander
DevNet Master
Posts: 3698
Joined: Mon Oct 25, 2004 9:29 pm
Location: New Jersey, US

Post by Ambush Commander »

Yep, browse Subversion anonymously. Example: http://hp.jpsband.org/svnroot/htmlpurif ... rifier.php

Should I make that more obvious?
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post 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.
User avatar
Ambush Commander
DevNet Master
Posts: 3698
Joined: Mon Oct 25, 2004 9:29 pm
Location: New Jersey, US

Post 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)
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Post by Luke »

Hey! Nice work, Ambush! I just downloaded. I'm looking forward to tinkering with it later tonight Image
User avatar
Ambush Commander
DevNet Master
Posts: 3698
Joined: Mon Oct 25, 2004 9:29 pm
Location: New Jersey, US

Post 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
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

AC, You are a stud. Potential candidate for Code Snippet of the Year... Huh? Way to go buddy. It is awesome.
User avatar
Ambush Commander
DevNet Master
Posts: 3698
Joined: Mon Oct 25, 2004 9:29 pm
Location: New Jersey, US

Post by Ambush Commander »

Thanks. Hmm... now as for whether or not people will start using it...
bg
Forum Contributor
Posts: 157
Joined: Fri Sep 12, 2003 11:01 am

Post 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?
User avatar
Ambush Commander
DevNet Master
Posts: 3698
Joined: Mon Oct 25, 2004 9:29 pm
Location: New Jersey, US

Post 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.
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

Post 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 :P

The more I use phpDocumentor though, the more I like it for what it does :)
User avatar
Ambush Commander
DevNet Master
Posts: 3698
Joined: Mon Oct 25, 2004 9:29 pm
Location: New Jersey, US

Post 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).
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

Post 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...
User avatar
Ambush Commander
DevNet Master
Posts: 3698
Joined: Mon Oct 25, 2004 9:29 pm
Location: New Jersey, US

Post 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).
Post Reply