Back to index

moin  1.9.0~rc2
Classes | Functions | Variables
MoinMoin.support.pygments.formatters.svg Namespace Reference

Classes

class  SvgFormatter

Functions

def escape_html

Variables

list __all__ = ['SvgFormatter']
dictionary class2style = {}

Function Documentation

Escape &, <, > as well as single and double quotes for HTML.

Definition at line 18 of file svg.py.

00018 
00019 def escape_html(text):
00020     """Escape &, <, > as well as single and double quotes for HTML."""
00021     return text.replace('&', '&amp;').  \
00022                 replace('<', '&lt;').   \
00023                 replace('>', '&gt;').   \
00024                 replace('"', '&quot;'). \
00025                 replace("'", '&#39;')
00026 

Here is the caller graph for this function:


Variable Documentation

Definition at line 15 of file svg.py.

Definition at line 27 of file svg.py.