mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 03:26:07 +02:00
#22 - Need to strip html tags from overviews
This commit is contained in:
parent
65303c8816
commit
2af33416a7
1 changed files with 2 additions and 2 deletions
|
@ -300,13 +300,13 @@ namespace MediaBrowser.Controller.Library
|
||||||
{
|
{
|
||||||
var strippedOverview = string.IsNullOrEmpty(item.Overview) ? item.Overview : item.Overview.StripHtml();
|
var strippedOverview = string.IsNullOrEmpty(item.Overview) ? item.Overview : item.Overview.StripHtml();
|
||||||
|
|
||||||
if (fields.Contains(ItemFields.Overview))
|
if (hasOverview)
|
||||||
{
|
{
|
||||||
dto.Overview = strippedOverview;
|
dto.Overview = strippedOverview;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Only supply the html version if there was actually html content
|
// Only supply the html version if there was actually html content
|
||||||
if (fields.Contains(ItemFields.OverviewHtml) && !string.Equals(item.Overview, strippedOverview))
|
if (hasHtmlOverview)
|
||||||
{
|
{
|
||||||
dto.OverviewHtml = item.Overview;
|
dto.OverviewHtml = item.Overview;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue