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