Attachment 'HTML.py'

Download

   1 """
   2     HTML macro
   3 
   4     by Christian Bird <chris.bird@lineo.com>
   5 
   6     Outputs the html code contained within parens.
   7 
   8     [[HTML(<b>bold</b>)]]
   9     [[HTML(<font size=20>big</font>)]
  10 
  11     Please pay attention!
  12     =====================
  13     Making this macro available makes your wiki unsafe for its users,
  14     because anybody being able to use it, can add arbitrary html to
  15     a page, exploiting all sorts of bugs present in today's web browsers.
  16 
  17     So better NOT use this macro or at least not on publicly editable
  18     wikis.
  19 """
  20 
  21 def execute(macro, args):
  22     return args or " "

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.
  • [get | view] (2004-01-30 22:44:11, 0.6 KB) [[attachment:HTML.py]]
 All files | Selected Files: delete move to page copy to page

You are not allowed to attach a file to this page.