Back to index

moin  1.9.0~rc2
Classes | Functions | Variables
MoinMoin.support.htmlmarkup Namespace Reference

Classes

class  Markup
class  Deuglifier
class  HTMLSanitizer
class  Fragment
class  Element
class  Tags

Functions

def unescape

Variables

list __all__ = ['escape', 'unescape', 'html']
tuple _EMPTY_TAGS = frozenset(['br', 'hr', 'img', 'input'])
tuple _BOOLEAN_ATTRS
 escape = Markup.escape
tuple html = Tags()

Function Documentation

Reverse-escapes &, <, > and \" and returns a `unicode` object.

Definition at line 153 of file htmlmarkup.py.

00153 
00154 def unescape(text):
00155     """Reverse-escapes &, <, > and \" and returns a `unicode` object."""
00156     if not isinstance(text, Markup):
00157         return text
00158     return text.unescape()
00159 


Variable Documentation

Definition at line 25 of file htmlmarkup.py.

Initial value:
00001 frozenset(['selected', 'checked', 'compact', 'declare',
00002                             'defer', 'disabled', 'ismap', 'multiple', 'nohref',
00003                             'noresize', 'noshade', 'nowrap'])

Definition at line 28 of file htmlmarkup.py.

tuple MoinMoin.support.htmlmarkup._EMPTY_TAGS = frozenset(['br', 'hr', 'img', 'input'])

Definition at line 27 of file htmlmarkup.py.

Definition at line 151 of file htmlmarkup.py.

Definition at line 479 of file htmlmarkup.py.