| @@ 300-303 (lines=4) @@ | ||
| 297 | /**///initialize keep tag logic |
|
| 298 | if(strlen($keep) > 0){ |
|
| 299 | $k = explode('|',$keep); |
|
| 300 | for($i=0;$i<count($k);$i++){ |
|
| 301 | $s = str_replace('<' . $k[$i],'[{(' . $k[$i],$s); |
|
| 302 | $s = str_replace('</' . $k[$i],'[{(/' . $k[$i],$s); |
|
| 303 | } |
|
| 304 | } |
|
| 305 | $pos = array(); |
|
| 306 | $len = array(); |
|
| @@ 344-347 (lines=4) @@ | ||
| 341 | ||
| 342 | /**///finalize keep tag |
|
| 343 | if (isset($k)) { |
|
| 344 | for($i=0;$i<count($k);$i++){ |
|
| 345 | $s = str_replace('[{(' . $k[$i],'<' . $k[$i],$s); |
|
| 346 | $s = str_replace('[{(/' . $k[$i],'</' . $k[$i],$s); |
|
| 347 | } |
|
| 348 | } |
|
| 349 | ||
| 350 | return trim($s); |
|