### Function escape - Converts the special characters '<', '>', and '&'.

## SYNOPSIS

    import HTMLgen

    def escape(text, replace=string.replace)

## DESCRIPTION

RFC 1866 specifies that these characters be represented in HTML as &lt; &gt; and &amp; respectively. In Python 1.5 we use the new string.replace() function for speed.

## SEE ALSO

HTMLgen

Copyright © Robin Friedrich
All Rights Reserved
Comments to author: friedrich@pythonpros.com
Generated: Tue Apr 20, 1999