Changeset 1840

Show
Ignore:
Timestamp:
11/03/08 18:18:58 (2 months ago)
Author:
rmarianski
Message:

need to set whitelist_tags instead of allow_tags to restrict properly

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • siteapp/branches/clean-embed/opengeo/almanac/content.py

    r1836 r1840  
    207207            host_whitelist.add('www.' + host) 
    208208 
    209     cleaner = Cleaner(allow_tags=allow_tags, 
    210                       remove_unknown_tags=False, 
     209    cleaner = Cleaner(remove_unknown_tags=False, 
    211210                      whitelist_tags=allow_tags, 
    212211                      host_whitelist=host_whitelist) 
    213     import pdb; pdb.set_trace() 
    214212    return cleaner.clean_html(markup) 
    215213