"""
    MoinMoin - HTML Text Parser
 
    Copyright (c) 2004 by Oliver Graf <ograf@bitart.de>
    All rights reserved, see COPYING for details.

    WARNING!!!

    This Parser is for educational purpose only, cause it
    has SEVERE security leaks (passing through all HTML unchecked).

    USE AT YOUR OWN RISK ONLY IN SECURED AND CONTROLLED ENVIRONMENTS!

"""

class Parser:
    """
        Send HTML code raw
    """

    def __init__(self, raw, request):
        self.html = raw
        self.request = request

    def format(self, formatter):
        """ Send the "parsed" text.
        """
        # never use print, request write is the thing to use
        self.request.write(self.html)

