nl_tokens: Transforms a hash of HTML attributes - e . g . data attributes - into a string .
pl_tokens: function attributesHashToString ( attributesHash , options ) { var reduce = options && options . reverse ? _ . reduceRight : _ . reduce , separator = options && options . multiline ? "\n" : " " , spacing = options && options . extrSpace || "" , defaultQuote = options && options . preferSingleQuotes ? "'" : '"' ; return reduce ( attributesHash , function ( attrString , <mask> , key ) { var quote = value . indexOf ( '"' ) !== - 1 ? "'" : value . indexOf ( "'" ) !== - 1 ? '"' : defaultQuote ; return attrString + key + spacing + "=" + spacing + quote + value + quote + separator ; } , "" ) ; }