From 5f3b59fe3df60be469e0e5d72f4cea3141ab7781 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Mon, 18 Jun 2018 11:08:30 +0200 Subject: [PATCH] Remove meta tag by HtmLawed --- api/src/Html/HtmLawed.php | 2 +- api/src/Mail.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/api/src/Html/HtmLawed.php b/api/src/Html/HtmLawed.php index 71c873eb25..db6e9ecfe1 100644 --- a/api/src/Html/HtmLawed.php +++ b/api/src/Html/HtmLawed.php @@ -90,7 +90,7 @@ class HtmLawed // tidy eats away even some wanted whitespace, so we switch it off; // we used it for its compacting and beautifying capabilities, which resulted in better html for further processing 'tidy'=>0, - 'elements' => "* -script", + 'elements' => "* -script -meta", 'deny_attribute' => 'on*', 'schemes'=>'href: file, ftp, http, https, mailto, tel, phone; src: cid, data, file, ftp, http, https; *:file, http, https', 'hook_tag' =>"hl_my_tag_transform", diff --git a/api/src/Mail.php b/api/src/Mail.php index 05cb462c53..2484674511 100644 --- a/api/src/Mail.php +++ b/api/src/Mail.php @@ -141,7 +141,7 @@ class Mail // tidy eats away even some wanted whitespace, so we switch it off; // we used it for its compacting and beautifying capabilities, which resulted in better html for further processing 'tidy'=>0, - 'elements' => "* -script", + 'elements' => "* -script -meta", 'deny_attribute' => 'on*', 'schemes'=>'href: file, ftp, http, https, mailto, phone, tel; src: cid, data, file, ftp, http, https; *:file, http, https, cid, src', 'hook_tag' =>"hl_email_tag_transform",