3 ], function( rnothtmlwhite ) {
6 // Strip and collapse whitespace according to HTML spec
7 // https://infra.spec.whatwg.org/#strip-and-collapse-ascii-whitespace
8 function stripAndCollapse( value ) {
9 var tokens = value.match( rnothtmlwhite ) || [];
10 return tokens.join( " " );
13 return stripAndCollapse;