nl_tokens: Filters user input css properties by whitelisted regex attributes .
pl_tokens: function filterCss ( abstractSyntaxTree , allowedStyles ) { if ( ! allowedStyles ) { return abstractSyntaxTree ; } var filteredAST = cloneDeep ( abstractSyntaxTree ) ; var astRules = abstractSyntaxTree . nodes [ 0 ] ; var selectedRule ; // Merge global and tag-specific styles into new AST. if ( allowedStyles [ astRules . selector ] && allowedStyles [ '*' ] ) { selectedRule = mergeWith ( cloneDeep ( allowedStyles [ astRules . selector ] ) , allowedStyles [ '*' ] , function ( objValue , srcValue ) { if ( <mask> . isArray ( objValue ) ) { return objValue . concat ( srcValue ) ; } } ) ; } else { selectedRule = allowedStyles [ astRules . selector ] || allowedStyles [ '*' ] ; } if ( selectedRule ) { filteredAST . nodes [ 0 ] . nodes = astRules . nodes . reduce ( filterDeclarations ( selectedRule ) , [ ] ) ; } return filteredAST ; }