From 07afe3c483763d84fb8bce8057c6f60082eb799d Mon Sep 17 00:00:00 2001
From: juanf <juanf>
Date: Thu, 4 Feb 2016 09:04:33 +0000
Subject: [PATCH] SSDM-2660 : Cleaner cleans tags used for code injection.

SVN: 35629
---
 .../eln-lims/1/dss/reporting-plugins/newbrowserapi/script.py     | 1 +
 1 file changed, 1 insertion(+)

diff --git a/plasmid/source/core-plugins/eln-lims/1/dss/reporting-plugins/newbrowserapi/script.py b/plasmid/source/core-plugins/eln-lims/1/dss/reporting-plugins/newbrowserapi/script.py
index b2fc6a90c3e..49ead648388 100644
--- a/plasmid/source/core-plugins/eln-lims/1/dss/reporting-plugins/newbrowserapi/script.py
+++ b/plasmid/source/core-plugins/eln-lims/1/dss/reporting-plugins/newbrowserapi/script.py
@@ -73,6 +73,7 @@ def updateIfIsPropertyRichText(properties, propertyCode, propertyValue):
 	if isPropertyRichText(properties, propertyCode):
 		if propertyValue is not None:
 			cleanerProperties = CleanerProperties();
+			cleanerProperties.setPruneTags("meta, link, script");
 			cleaner = HtmlCleaner(cleanerProperties);
 			htmlSerializer = SimpleHtmlSerializer(cleanerProperties);
 			propertytagNode = cleaner.clean(propertyValue);
-- 
GitLab