| @@ 291-294 (lines=4) @@ | ||
| 288 | /**///initialize keep tag logic |
|
| 289 | if(strlen($keep) > 0){ |
|
| 290 | $k = explode('|',$keep); |
|
| 291 | for($i=0;$i<count($k);$i++){ |
|
| 292 | $s = str_replace('<' . $k[$i],'[{(' . $k[$i],$s); |
|
| 293 | $s = str_replace('</' . $k[$i],'[{(/' . $k[$i],$s); |
|
| 294 | } |
|
| 295 | } |
|
| 296 | $pos = array(); |
|
| 297 | $len = array(); |
|
| @@ 335-338 (lines=4) @@ | ||
| 332 | ||
| 333 | /**///finalize keep tag |
|
| 334 | if (isset($k)) { |
|
| 335 | for($i=0;$i<count($k);$i++){ |
|
| 336 | $s = str_replace('[{(' . $k[$i],'<' . $k[$i],$s); |
|
| 337 | $s = str_replace('[{(/' . $k[$i],'</' . $k[$i],$s); |
|
| 338 | } |
|
| 339 | } |
|
| 340 | ||
| 341 | return trim($s); |
|