Edgewall Software

Changes between Version 7 and Version 8 of MarkupStream


Ignore:
Timestamp:
Aug 29, 2006, 12:22:06 PM (18 years ago)
Author:
cmlenz
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • MarkupStream

    v7 v8  
    7878One example of a filter included with Markup is the `HTMLSanitizer` in `markup.filters`. It processes a stream of HTML markup, and strips out any potentially dangerous constructs, such as Javascript event handlers. `HTMLSanitizer` is not a function, but rather a class that implements `__call__`, which means instances of the class are callable.
    7979
    80 Both the `filter()` method and the right-shift operator allow easy chaining of filters:
    81 
     80Both the `filter()` method and the pipe operator allow easy chaining of filters:
    8281{{{
    8382#!python
     
    8786
    8887That is equivalent to:
    89 
    9088{{{
    9189#!python