def _clean_data_if(match):
 quote = match.group(1)
 condition = match.group(2)
 for (entity, replace) in _CLEAN_ENTITIES.iteritems():
  condition = condition.replace(entity, replace)
 return ('data-if=%s%s%s' % (quote, condition, quote))

def _clean_data_if ( match ) : quote = match . group ( 1 ) condition = match . group ( 2 ) for ( entity , replace ) in _CLEAN_ENTITIES . iteritems ( ) : condition = condition . replace ( entity , replace ) return ( 'data-if=%s%s%s' % ( quote , condition , quote ) )
clean up entities in data-if attributes .