Back to index

plone3  3.1.7
Public Member Functions | Private Member Functions | Static Private Attributes
kss.core.parsers.replace_html_named_entities Class Reference

List of all members.

Public Member Functions

def __new__

Private Member Functions

def _entity_replacer
def _replace

Static Private Attributes

tuple _entity_regexp = re.compile(r'&([A-Za-z]+);')
tuple _entity_replacer = staticmethod(_entity_replacer)
tuple _replace = classmethod(_replace)

Detailed Description

Definition at line 32 of file

Member Function Documentation

Definition at line 47 of file

00048     def __new__(cls, value):
00049         return cls._replace(value)

Definition at line 36 of file

00037     def _entity_replacer(m):
00038         value = htmlentitydefs.name2codepoint.get(
00039         if value is None:
00040             return
        return "&#%i;" % value
def kss.core.parsers.replace_html_named_entities._replace (   cls,
) [private]

Definition at line 43 of file

00044     def _replace(cls, value):
        return cls._entity_regexp.sub(cls._entity_replacer, value)

Member Data Documentation

tuple kss.core.parsers.replace_html_named_entities._entity_regexp = re.compile(r'&([A-Za-z]+);') [static, private]

Definition at line 34 of file

Definition at line 41 of file

tuple kss.core.parsers.replace_html_named_entities._replace = classmethod(_replace) [static, private]

Definition at line 45 of file

The documentation for this class was generated from the following file: