Changeset 171

Show
Ignore:
Timestamp:
03/30/06 04:57:29 (3 years ago)
Author:
abaxter
Message:

Added a render_htmlquote, needed to make the #*$&#(*$&# RSS feed work.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/pyramid/page.py

    r163 r171  
    4040        ''' 
    4141        return self.data 
     42 
     43    def render_htmlquote(self, ctx, data): 
     44        ''' quote the input ''' 
     45        data = data.replace('&','&amp;').replace('>','&gt;').replace('<','&lt;') 
     46        return data 
    4247 
    4348    def render_tree(self,ctx,data):