diff --git a/src/webui/www/private/views/rss.html b/src/webui/www/private/views/rss.html index 7ef89809a..5bf625d2c 100644 --- a/src/webui/www/private/views/rss.html +++ b/src/webui/www/private/views/rss.html @@ -72,6 +72,11 @@ width: 100%; } + #rssDescription { + width: 100%; + border: none; + } +
@@ -423,11 +428,15 @@ return torrentDate; })()); - // Strip script before interpreting html - let torrentDescription = document.createRange().createContextualFragment( - '
' + article.description.stripScripts() + '
'); - + // Place in iframe with sandbox atribute to prevent js execution + let torrentDescription = document.createRange().createContextualFragment(''); $('rssDetailsView').append(torrentDescription); + document.getElementById('rssDescription').srcdoc = '' + article.description + ""; + + //calculate height to fill screen + document.getElementById('rssDescription').style.height = + "calc(100% - " + document.getElementById('rssTorrentDetailsName').offsetHeight + "px - " + + document.getElementById('rssTorrentDetailsDate').offsetHeight + "px - 5px)"; } };