Attachment 'html-parser-1.2.py'
Download 1 """
2 MoinMoin - HTML Text Parser
3
4 Copyright (c) 2004 by Oliver Graf <ograf@bitart.de>
5 All rights reserved, see COPYING for details.
6
7 WARNING!!!
8
9 This Parser is for educational purpose only, cause it
10 has SEVERE security leaks (passing through all HTML unchecked).
11
12 USE AT YOUR OWN RISK ONLY IN SECURED AND CONTROLLED ENVIRONMENTS!
13
14 """
15
16 class Parser:
17 """
18 Send HTML code raw
19 """
20
21 def __init__(self, raw, request):
22 self.html = raw
23 self.request = request
24
25 def format(self, formatter):
26 """ Send the "parsed" text.
27 """
28 # never use print, request write is the thing to use
29 self.request.write(self.html)
Attached Files
To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.You are not allowed to attach a file to this page.