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
* > The input stream consists of the filtered code points pushed into it as the input byte stream is decoded.
55
-
* >
56
-
* > To filter code points from a stream of (unfiltered) code points input:
57
-
* > Replace any U+000D CARRIAGE RETURN (CR) code points, U+000C FORM FEED (FF) code points, or pairs of U+000D CARRIAGE RETURN (CR) followed by U+000A LINE FEED (LF) in input by a single U+000A LINE FEED (LF) code point.
58
-
* > Replace any U+0000 NULL or surrogate code points in input with U+FFFD REPLACEMENT CHARACTER (�).
* > The input stream consists of the filtered code points pushed into it as the input byte stream is decoded.
131
-
* >
132
-
* > To filter code points from a stream of (unfiltered) code points input:
133
-
* > Replace any U+000D CARRIAGE RETURN (CR) code points, U+000C FORM FEED (FF) code points, or pairs of U+000D CARRIAGE RETURN (CR) followed by U+000A LINE FEED (LF) in input by a single U+000A LINE FEED (LF) code point.
134
-
* > Replace any U+0000 NULL or surrogate code points in input with U+FFFD REPLACEMENT CHARACTER (�).
* > A selector string is a list of one or more complex selectors ([SELECTORS4], section 3.1) that may be surrounded by whitespace…
839
+
*
840
+
* This list includes \f.
841
+
* A later step would normalize it to a known whitespace character, but it can be trimmed here as well.
842
+
*/
843
+
$input = trim( $input, "\t\r\n\r\f" );
844
+
845
+
/*
846
+
* > The input stream consists of the filtered code points pushed into it as the input byte stream is decoded.
847
+
* >
848
+
* > To filter code points from a stream of (unfiltered) code points input:
849
+
* > Replace any U+000D CARRIAGE RETURN (CR) code points, U+000C FORM FEED (FF) code points, or pairs of U+000D CARRIAGE RETURN (CR) followed by U+000A LINE FEED (LF) in input by a single U+000A LINE FEED (LF) code point.
850
+
* > Replace any U+0000 NULL or surrogate code points in input with U+FFFD REPLACEMENT CHARACTER (�).
0 commit comments