/[phpgroupware]/wiki/parse/transforms.php
ViewVC logotype

Diff of /wiki/parse/transforms.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.4 by ralfbecker, Wed Jul 2 22:16:34 2003 UTC revision 1.4.2.1 by skwashd, Fri Sep 3 10:46:24 2004 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id$  // $Id$
3    
4    //Portions of this script written by Dave Hall - skwashd at phpgroupware.org
5    //Portions of this file are Copyright (c) 2004 The Free Software Foundation Inc
6    
7  // The main parser components.  Each of these takes a line of text and scans it  // The main parser components.  Each of these takes a line of text and scans it
8  //   for particular wiki markup.  It converts markup elements to  //   for particular wiki markup.  It converts markup elements to
9  //   $FlgChr . x . $FlgChr, where x is an index into the global array $Entity,  //   $FlgChr . x . $FlgChr, where x is an index into the global array $Entity,
# Line 322  function parse_raw_html($text) Line 325  function parse_raw_html($text)
325        return $FlgChr . (count($Entity) - 1) . $FlgChr;        return $FlgChr . (count($Entity) - 1) . $FlgChr;
326      }      }
327      // the following str-replace gards agains css or script in the html      // the following str-replace gards agains css or script in the html
328      $buffer = $buffer . parse_elements(str_replace(array('<script','</script'),array('&lt;script','&lt;/script'),$text));      $buffer .=  parse_elements(str_replace(array('<script','</script'),array('&lt;script','&lt;/script'), preg_replace("' on(.*?)=\"(.*?)\"'i", '', $text)));
329      return '';      return '';
330    }    }
331    else    else

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.4.2.1

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26