Home
last modified time | relevance | path

Searched refs:entitydefs (Results 1 – 10 of 10) sorted by relevance

/external/python/cpython2/Lib/
Dhtmlentitydefs.py264 entitydefs = {} variable
269 entitydefs[name] = chr(codepoint)
271 entitydefs[name] = '&#%d;' % codepoint
DHTMLParser.py446 entitydefs = None variable in HTMLParser
465 if HTMLParser.entitydefs is None:
467 entitydefs = {'apos':u"'"}
469 entitydefs[k] = unichr(v)
470 HTMLParser.entitydefs = entitydefs
472 return self.entitydefs[s]
Dxmllib.py209 if str in self.entitydefs:
210 str = self.entitydefs[str]
378 if name in self.entitydefs:
379 … self.rawdata = rawdata = rawdata[:res.start(0)] + self.entitydefs[name] + rawdata[i:]
770 entitydefs = {'lt': '<', # must use charref variable in XMLParser
Dsgmllib.py415 entitydefs = \ variable in SGMLParser
424 table = self.entitydefs
Dhtmllib.py32 from htmlentitydefs import entitydefs
/external/python/cpython3/Lib/html/
Dentities.py2503 entitydefs = {} variable
2507 entitydefs[name] = chr(codepoint)
/external/python/cpython3/Doc/library/
Dhtml.entities.rst14 :data:`name2codepoint`, :data:`codepoint2name`, and :data:`entitydefs`.
29 .. data:: entitydefs
/external/python/cpython2/Doc/library/
Dhtmllib.rst175 and ``entitydefs``. ``entitydefs`` is used by the :mod:`htmllib` module to
176 provide the :attr:`entitydefs` attribute of the :class:`~HTMLParser.HTMLParser` class. The
182 .. data:: entitydefs
Dsgmllib.rst168 method ``unknown_entityref(ref)``. The default :attr:`entitydefs` defines
180 :attr:`entitydefs` which should be a mapping from entity names to corresponding
Dxmllib.rst54 .. attribute:: entitydefs