Re: Obfuscate HTML..?

2009-05-25 Thread Chris Czub
What reason do you have for this? Security through obfuscation isn't a good strategy, especially with something as intrinsically open as HTML. If your site can be hacked just by being able to view the HTML then you have bigger problems to worry about than obfuscating it. On Mon, May 25, 2009 at

Re: Obfuscate HTML..?

2009-05-25 Thread Andy Mikhailenko
Built-in template tag {% spaceless %) can do a part of work for you (namely, remove the extra whitespace), but to actually obfuscate the code you should either use middleware or make extensive use of JavaScript (e.g. open GMail and try to read the source). However, the idea in general sounds

Re: Obfuscate HTML..?

2009-05-24 Thread David Zhou
On Sun, May 24, 2009 at 9:40 PM, jago wrote: > > I want to make the HTML of the website as little human readable as > possible. For that I would like to add some layer to Django 0.96 which > when writing out the page takes the HTML and adds some processing. > > 1. How would

Re: Obfuscate HTML..?

2009-05-24 Thread Alex Gaynor
On Sun, May 24, 2009 at 8:40 PM, jago wrote: > > Hi, > > I want to make the HTML of the website as little human readable as > possible. For that I would like to add some layer to Django 0.96 which > when writing out the page takes the HTML and adds some processing. > > 1.

Obfuscate HTML..?

2009-05-24 Thread jago
Hi, I want to make the HTML of the website as little human readable as possible. For that I would like to add some layer to Django 0.96 which when writing out the page takes the HTML and adds some processing. 1. How would I obfuscate the HTML as much as possible (remove all line breaks, etc.)