| @@ 363-369 (lines=7) @@ | ||
| 360 | ||
| 361 | //begin removal |
|
| 362 | /**///remove comment blocks |
|
| 363 | while (stripos($s, '<!--') > 0) { |
|
| 364 | $pos[1] = stripos($s, '<!--'); |
|
| 365 | $pos[2] = stripos($s, '-->', $pos[1]); |
|
| 366 | $len[1] = $pos[2] - $pos[1] + 3; |
|
| 367 | $x = substr($s, $pos[1], $len[1]); |
|
| 368 | $s = str_replace($x, '', $s); |
|
| 369 | } |
|
| 370 | ||
| 371 | /**///remove tags with content between them |
|
| 372 | if (strlen($expand) > 0) { |
|
| @@ 387-393 (lines=7) @@ | ||
| 384 | } |
|
| 385 | ||
| 386 | /**///remove remaining tags |
|
| 387 | while (stripos($s, '<') > 0) { |
|
| 388 | $pos[1] = stripos($s, '<'); |
|
| 389 | $pos[2] = stripos($s, '>', $pos[1]); |
|
| 390 | $len[1] = $pos[2] - $pos[1] + 1; |
|
| 391 | $x = substr($s, $pos[1], $len[1]); |
|
| 392 | $s = str_replace($x, '', $s); |
|
| 393 | } |
|
| 394 | ||
| 395 | /**///finalize keep tag |
|
| 396 | if (isset($k)) { |
|