Ignore:
Timestamp:
May 30, 2011 8:48:04 AM (8 years ago)
Author:
vmaksymiv
Message:

has added upgrade step for fixing escaped seo properties

File:
1 edited

Legend:

Unmodified
Added
Removed
  • quintagroup.seoptimizer/trunk/quintagroup/seoptimizer/util.py

    r3189 r3223  
    5252    if m.group("ent"): 
    5353        try: 
    54             return entitydefs[m.group("ent")] 
     54            return unescape(entitydefs[m.group("ent")]) 
    5555        except KeyError: 
    5656            return m.group(0) 
     
    6666 
    6767def unescape(s): 
    68     result = expr.sub(_group_unescape, s) 
    69  
    70     if isinstance(s, unicode): 
    71         return result 
    72     else: 
    73         return unicode(result) 
     68    return expr.sub(_group_unescape, s) 
Note: See TracChangeset for help on using the changeset viewer.