Javascript String stripScripts()

Description

Javascript String stripScripts()

String.prototype.stripScripts = function()
{
    return this.replace(new RegExp('<script[^>]*>([\\S\\s]*?)<\/script>', 'img'), '');
};



PreviousNext

Related