Cheetah.Utils.htmlDecode module

This is a copy of the htmlDecode function in Webware.

@@TR: It implemented more efficiently.

Cheetah.Utils.htmlDecode.htmlDecode(s, codes=[['"', '&quot;'], ['>', '&gt;'], ['<', '&lt;'], ['&', '&amp;']])

Returns the ASCII decoded version of the given HTML string. This does NOT remove normal HTML tags like <p>. It is the inverse of htmlEncode().