Changeset 1294
- Timestamp:
- 08/17/08 16:45:41 (4 months ago)
- Files:
-
- bbcode-lite/trunk/BBcode-lite.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
bbcode-lite/trunk/BBcode-lite.php
r1184 r1294 6 6 Author: _ck_ 7 7 Author URI: http://bbShowcase.org 8 Version: 1.0. 18 Version: 1.0.2 9 9 10 10 License: CC-GNU-GPL http://creativecommons.org/licenses/GPL/2.0/ … … 22 22 if (preg_match_all("|\<code\>(.*?)\<\/code\>|sim", $text, $backticks)) {foreach ($backticks[0] as $backtick) {++$counter; $text=str_replace($backtick,"_bbcode_lite_".$counter."_",$text);}} 23 23 24 $text = preg_replace('/\[ \*\](.+?)(\[\/\*\]|(?=(\[\*\]|\[\/list\])))/sim','<li>$1</li>',$text); // * = li, a very special case since they may not be closed24 $text = preg_replace('/\[(\*|li)\](.+?)(\[\/(\*|li)\]|(?=(\[(\*|li)\]|\[\/list\])))/sim','<li>$2</li>',$text); // * = li, a very special case since they may not be closed 25 25 26 26 $wrap = array('color' => array('font','color'),'size' => array('font','size'),'url' => array('a','href'), 'list' => array('ol','type'));
