Skip to content

Commit

Permalink
New module that has an html_quote function that is imported into both…
Browse files Browse the repository at this point in the history
… DT_Var and DT_Utils to support older code that depends on the function to be in either place.
  • Loading branch information
mcdonc committed Jun 18, 2001
1 parent 72adbd9 commit 6aaeef4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions html_quote.py
@@ -0,0 +1,7 @@
# split off into its own module for aliasing without circrefs

from cgi import escape

def html_quote(v, name='(Unknown name)', md={}):
return escape(str(v), 1)

0 comments on commit 6aaeef4

Please sign in to comment.