diff --git src/wp-includes/formatting.php src/wp-includes/formatting.php
index 0d7b9f9..21d6cf1 100644
|
|
function get_html_split_regex() { |
650 | 650 | . ')*+' // Loop possessively. |
651 | 651 | . '(?:]]>)?'; // End of comment. If not found, match all input. |
652 | 652 | |
| 653 | $script = |
| 654 | 'script' // Start of script, after the <. |
| 655 | . '.*?' // Consume everything, ungreedy. |
| 656 | . '(?:<\/script>)'; // Until first closing tag. |
| 657 | |
653 | 658 | $escaped = |
654 | 659 | '(?=' // Is the element escaped? |
655 | 660 | . '!--' |
656 | 661 | . '|' |
657 | 662 | . '!\[CDATA\[' |
| 663 | . '|' |
| 664 | . 'script' |
658 | 665 | . ')' |
| 666 | |
659 | 667 | . '(?(?=!-)' // If yes, which type? |
660 | | . $comments |
| 668 | . $comments |
661 | 669 | . '|' |
662 | | . $cdata |
| 670 | . '(?(?=script)' |
| 671 | . $script |
| 672 | . '|' |
| 673 | . $cdata |
| 674 | . ')' |
663 | 675 | . ')'; |
664 | 676 | |
665 | 677 | $regex = |