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, |
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('<script','</script'),$text)); |
$buffer .= parse_elements(str_replace(array('<script','</script'),array('<script','</script'), preg_replace("' on(.*?)=\"(.*?)\"'i", '', $text))); |
329 |
return ''; |
return ''; |
330 |
} |
} |
331 |
else |
else |