nl_tokens: Wraps strings in a html to highlight
pl_tokens: function highlight ( term , <mask> , wrapperNode ) { debug ( 'Starting highlight' ) ; if ( ! wrapperNode ) { wrapperNode = document . createElement ( 'mark' ) ; } if ( ! term || ! html ) { return html ; } const root = document . createElement ( 'div' ) ; root . innerHTML = html ; walk ( root , term , wrapperNode ) ; return root . innerHTML ; }