On Sun, May 24, 2009 at 9:40 PM, jago <java.j...@gmail.com> 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 I obfuscate the HTML as much as possible (remove all line > breaks, etc.) > 2. How would I best add the layer which does this obfuscation
The first question you should ask yourself is "Why?" HTML obfuscation is pretty useless; a simple tidy will reformat HTML back into readable form. Unlike, say, Javascript obfuscation, you're bound by valid HTML elements that cannot be renamed. That said, you use a custom middleware: http://docs.djangoproject.com/en/dev/topics/http/middleware/#process-response The docs for 0.96 is at: http://www.djangoproject.com/documentation/0.96/middleware/#process-response -- dz --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---