nl_tokens: Removes images from text .
pl_tokens: function removeImagesFromText ( text ) { const images = imageInText ( text ) ; const imageTags = matchStringWithRegex ( text , "</img>" ) ; if ( images . length > 0 ) { images . forEach ( function ( image ) { text = text . <mask> ( image , "" ) ; } ) ; imageTags . forEach ( function ( imageTag ) { text = text . replace ( imageTag , "" ) ; } ) ; } return text ; }