File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1916,7 +1916,6 @@ public function is_tag_closer() {
19161916 public function get_previous_text_chunk () {
19171917 if ( $ this ->bytes_already_parsed >= strlen ( $ this ->html ) ) {
19181918 $ chunk = substr ( $ this ->html , $ this ->last_position ->end === 0 ? 0 : $ this ->last_position ->end + 1 );
1919- $ chunk = preg_replace ( '/<[^a-z].*>/i ' , '' , $ chunk );
19201919 return html_entity_decode ( $ chunk , ENT_HTML5 | ENT_QUOTES | ENT_SUBSTITUTE );
19211920 }
19221921
@@ -1927,7 +1926,6 @@ public function get_previous_text_chunk() {
19271926 $ chunk_start = $ this ->last_position ->end === 0 ? 0 : $ this ->last_position ->end + 1 ;
19281927 $ chunk_end = $ this ->is_tag_closer () ? $ this ->tag_name_starts_at - 2 : $ this ->tag_name_starts_at - 1 ;
19291928 $ chunk = substr ( $ this ->html , $ chunk_start , $ chunk_end - $ chunk_start );
1930- $ chunk = preg_replace ( '/<[^a-z].*>/i ' , '' , $ chunk );
19311929 return html_entity_decode ( $ chunk , ENT_HTML5 | ENT_QUOTES | ENT_SUBSTITUTE );
19321930 }
19331931
You can’t perform that action at this time.
0 commit comments