Lines Matching refs:attrs
200 attrs = dict([(name, val) for name, val in
204 if attr not in attrs:
207 unescape(attrs[attr])).lower()
213 del attrs[attr]
217 del attrs[attr]
219 del attrs[attr]
222 if attr in attrs:
223 attrs[attr] = re.sub(r'url\s*\(\s*[^#\s][^)]+?\)',
225 unescape(attrs[attr]))
227 'xlink:href' in attrs and re.search('^\s*[^#\s].*',
228 attrs['xlink:href'])):
229 del attrs['xlink:href']
230 if 'style' in attrs:
231 attrs['style'] = self.sanitize_css(attrs['style'])
232 token["data"] = [[name, val] for name, val in list(attrs.items())]
239 attrs = ''.join([' %s="%s"' % (k, escape(v)) for k, v in token["data"]])
240 token["data"] = "<%s%s>" % (token["name"], attrs)