From bc5dc02e5e178ecf5de14a0fee27ce80528a6af6 Mon Sep 17 00:00:00 2001 From: Johannes Kreiner <johannes@sgalinski.de> Date: Mon, 15 Apr 2019 17:02:50 +0200 Subject: [PATCH] [BUGFIX] Decode HTML entities in Youtube title and description --- Resources/Private/Templates/Youtube/Index.html | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Resources/Private/Templates/Youtube/Index.html b/Resources/Private/Templates/Youtube/Index.html index 43fbab6..f15c9cf 100644 --- a/Resources/Private/Templates/Youtube/Index.html +++ b/Resources/Private/Templates/Youtube/Index.html @@ -11,17 +11,21 @@ <f:if condition="{feedItem.title}"> <div class="sg-youtube-title"> <h3 class="h3"> - {feedItem.title} + <f:format.htmlentitiesDecode>{feedItem.title}</f:format.htmlentitiesDecode> </h3> </div> </f:if> <f:if condition="{feedItem.description}"> <div class="sg-youtube-text"> - <f:format.crop maxCharacters="200">{feedItem.description}</f:format.crop> + <f:format.htmlentitiesDecode> + <f:format.crop maxCharacters="200"> + {feedItem.description} + </f:format.crop> + </f:format.htmlentitiesDecode> </div> </f:if> </a> </li> </f:for> </ul> -</f:section> \ No newline at end of file +</f:section> -- GitLab