Changeset 815 for trunk/HTML
- Timestamp:
- Feb 22, 2015, 11:05:49 PM (10 years ago)
- Location:
- trunk/HTML
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/HTML/BBCodeParser2.php
r760 r815 140 140 */ 141 141 var $_filters = array(); 142 142 143 143 /** 144 144 * Constructor, initialises the options and filters … … 146 146 * Sets options to properly escape the tag 147 147 * characters in preg_replace() etc. 148 * 148 * 149 149 * All the filters in the options are initialised and their defined tags 150 150 * are copied into the private variable _definedTags. -
trunk/HTML/BBCodeParser2/Filter/Links.php
r760 r815 156 156 return $matches[1].$o.'url'.$c.$matches[2].$o.'/url'.$c.$trailing; 157 157 } 158 158 159 159 return $matches[0]; 160 160 } … … 195 195 return $o.'url='.$urlServ.$path.$c.$matches[6].$o.'/url'.$c; 196 196 } 197 197 198 198 //Else remove url tag 199 199 return $matches[6]; -
trunk/HTML/BBCodeParser2/Filter/Lists.php
r760 r815 29 29 30 30 /** 31 * 31 * 32 32 */ 33 33 class HTML_BBCodeParser2_Filter_Lists extends HTML_BBCodeParser2_Filter … … 84 84 $oe = $options['open_esc']; 85 85 $ce = $options['close_esc']; 86 86 87 87 $pattern = array( "!".$oe."\*".$ce."!", 88 88 "!".$oe."(u?)list=(?-i:A)(\s*[^".$ce."]*)".$ce."!i", … … 92 92 "!".$oe."(u?)list=(?-i:1)(\s*[^".$ce."]*)".$ce."!i", 93 93 "!".$oe."(u?)list([^".$ce."]*)".$ce."!i"); 94 94 95 95 $replace = array( $o."li".$c, 96 96 $o."\$1list=upper-alpha\$2".$c, … … 100 100 $o."\$1list=decimal\$2".$c, 101 101 $o."\$1list\$2".$c ); 102 102 103 103 $this->_preparsed = preg_replace($pattern, $replace, $this->_text); 104 104 }
Note:
See TracChangeset
for help on using the changeset viewer.