예제 #1
0
 def stripentities(self, keepxmlentities=False):
     """Return a copy of the text with any character or numeric entities
     replaced by the equivalent UTF-8 characters.
     
     If the `keepxmlentities` parameter is provided and evaluates to `True`,
     the core XML entities (``&``, ``'``, ``>``, ``<`` and
     ``"``) are not stripped.
     
     :see: `genshi.util.stripentities`
     """
     return Markup(stripentities(self, keepxmlentities=keepxmlentities))
예제 #2
0
 def stripentities(self, keepxmlentities=False):
     """Return a copy of the text with any character or numeric entities
     replaced by the equivalent UTF-8 characters.
     
     If the `keepxmlentities` parameter is provided and evaluates to `True`,
     the core XML entities (``&``, ``'``, ``>``, ``<`` and
     ``"``) are not stripped.
     
     :return: a `Markup` instance with entities removed
     :rtype: `Markup`
     :see: `genshi.util.stripentities`
     """
     return Markup(stripentities(self, keepxmlentities=keepxmlentities))