dist/CommentCoreLibrary.js
function (text) {
        text = text.replace(new RegExp('</([^d])','g'), '</disabled $1');
        text = text.replace(new RegExp('</(\S{2,})','g'), '</disabled $1');
        text = text.replace(new RegExp('<([^d/]\W*?)','g'), '<disabled $1');
        text = text.replace(new RegExp('<([^/ ]{2,}\W*?)','g'), '<disabled $1');
        return text;
    }
function (text) {
        text = text.replace(new RegExp('</([^d])','g'), '</disabled $1');
        text = text.replace(new RegExp('</(\S{2,})','g'), '</disabled $1');
        text = text.replace(new RegExp('<([^d/]\W*?)','g'), '<disabled $1');
        text = text.replace(new RegExp('<([^/ ]{2,}\W*?)','g'), '<disabled $1');
        return text;
    }
function ( text ) { text = text . replace ( new RegExp ( '</([^d])' , 'g' ) , '</disabled $1' ) ; text = text . replace ( new RegExp ( '</(\S{2,})' , 'g' ) , '</disabled $1' ) ; text = text . replace ( new RegExp ( '<([^d/]\W*?)' , 'g' ) , '<disabled $1' ) ; text = text . replace ( new RegExp ( '<([^/ ]{2,}\W*?)' , 'g' ) , '<disabled $1' ) ; return text ; }
Try to escape unsafe HTML code. DO NOT trust that this handles all cases Please do not allow insecure DOM parsing unless you can trust your input source.
Try to escape unsafe HTML code . DO NOT trust that this handles all cases Please do not allow insecure DOM parsing unless you can trust your input source .