| @@ 2493-2502 (lines=10) @@ | ||
| 2490 | ); |
|
| 2491 | } |
|
| 2492 | ||
| 2493 | if (stripos($str, '<img') !== false) { |
|
| 2494 | $str = preg_replace_callback( |
|
| 2495 | '#<img[^a-z0-9]+([^>]*?)(?:\s?/?>|$)#i', |
|
| 2496 | array( |
|
| 2497 | $this, |
|
| 2498 | '_js_src_removal_callback', |
|
| 2499 | ), |
|
| 2500 | $str |
|
| 2501 | ); |
|
| 2502 | } |
|
| 2503 | ||
| 2504 | if (stripos($str, '<audio') !== false) { |
|
| 2505 | $str = preg_replace_callback( |
|
| @@ 2504-2513 (lines=10) @@ | ||
| 2501 | ); |
|
| 2502 | } |
|
| 2503 | ||
| 2504 | if (stripos($str, '<audio') !== false) { |
|
| 2505 | $str = preg_replace_callback( |
|
| 2506 | '#<audio[^a-z0-9]+([^>]*?)(?:\s?/?>|$)#i', |
|
| 2507 | array( |
|
| 2508 | $this, |
|
| 2509 | '_js_src_removal_callback', |
|
| 2510 | ), |
|
| 2511 | $str |
|
| 2512 | ); |
|
| 2513 | } |
|
| 2514 | ||
| 2515 | if (stripos($str, '<video') !== false) { |
|
| 2516 | $str = preg_replace_callback( |
|
| @@ 2515-2524 (lines=10) @@ | ||
| 2512 | ); |
|
| 2513 | } |
|
| 2514 | ||
| 2515 | if (stripos($str, '<video') !== false) { |
|
| 2516 | $str = preg_replace_callback( |
|
| 2517 | '#<video[^a-z0-9]+([^>]*?)(?:\s?/?>|$)#i', |
|
| 2518 | array( |
|
| 2519 | $this, |
|
| 2520 | '_js_src_removal_callback', |
|
| 2521 | ), |
|
| 2522 | $str |
|
| 2523 | ); |
|
| 2524 | } |
|
| 2525 | ||
| 2526 | if (stripos($str, '<source') !== false) { |
|
| 2527 | $str = preg_replace_callback( |
|
| @@ 2526-2535 (lines=10) @@ | ||
| 2523 | ); |
|
| 2524 | } |
|
| 2525 | ||
| 2526 | if (stripos($str, '<source') !== false) { |
|
| 2527 | $str = preg_replace_callback( |
|
| 2528 | '#<source[^a-z0-9]+([^>]*?)(?:\s?/?>|$)#i', |
|
| 2529 | array( |
|
| 2530 | $this, |
|
| 2531 | '_js_src_removal_callback', |
|
| 2532 | ), |
|
| 2533 | $str |
|
| 2534 | ); |
|
| 2535 | } |
|
| 2536 | ||
| 2537 | if (stripos($str, 'script') !== false) { |
|
| 2538 | // US-ASCII: ΒΌ === < |
|