Skip to content

Commit

Permalink
setting param EXCLUDE_TAGS_FROM_MINIFYING
Browse files Browse the repository at this point in the history
Example code in settings.py:

EXCLUDE_TAGS_FROM_MINIFYING = ('pre', 'script', 'textarea', 'noscript')
  • Loading branch information
crazyzubr committed Dec 25, 2013
1 parent 3f0b4b3 commit b3269e7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion htmlmin/minify.py
Expand Up @@ -12,7 +12,9 @@

from .util import force_decode, between_two_tags

EXCLUDE_TAGS = ("pre", "script", "textarea",)
from django.conf import settings

EXCLUDE_TAGS = getattr(settings, "EXCLUDE_TAGS_FROM_MINIFYING", ("pre", "script", "textarea",))

TAGS_PATTERN = "<%s>%d</%s>"

Expand Down

0 comments on commit b3269e7

Please sign in to comment.