Rinser/plugins/fix_scripts.js
martind2000@gmail.com 0e22bc7ec4 added more filtering
2015-08-14 20:58:05 +01:00

9 lines
314 B
JavaScript

module.exports = function (item, itemOptions, source) {
var match = itemOptions.description.replace(/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,'');
match = match.replace(/<iframe\b[^<]*(?:(?!<\/iframe>)<[^<]*)*<\/iframe>/gi,'');
itemOptions.description = match;
return itemOptions;
};