You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -95,7 +94,11 @@ public function __construct($data, $encoding = 'UTF-8', $debug = '')
95
94
protectedfunctionreplaceLinefeeds($data)
96
95
{
97
96
/*
98
-
* U+000D CARRIAGE RETURN (CR) characters and U+000A LINE FEED (LF) characters are treated specially. Any CR characters that are followed by LF characters must be removed, and any CR characters not followed by LF characters must be converted to LF characters. Thus, newlines in HTML DOMs are represented by LF characters, and there are never any CR characters in the input to the tokenization stage.
97
+
* U+000D CARRIAGE RETURN (CR) characters and U+000A LINE FEED (LF) characters are treated specially.
98
+
* Any CR characters that are followed by LF characters must be removed, and any CR characters not
99
+
* followed by LF characters must be converted to LF characters. Thus, newlines in HTML DOMs are
100
+
* represented by LF characters, and there are never any CR characters in the input to the tokenization
101
+
* stage.
99
102
*/
100
103
$crlfTable = array(
101
104
"\0" => "\xEF\xBF\xBD",
@@ -126,7 +129,7 @@ public function currentLine()
126
129
*/
127
130
publicfunctiongetCurrentLine()
128
131
{
129
-
returncurrentLine();
132
+
return$this->currentLine();
130
133
}
131
134
132
135
/**
@@ -281,6 +284,8 @@ public function charsUntil($bytes, $max = null)
0 commit comments