From 2af33416a7c437cfba94eece540745fb8f92ef6f Mon Sep 17 00:00:00 2001 From: LukePulverenti Date: Thu, 14 Mar 2013 21:40:24 -0400 Subject: [PATCH] #22 - Need to strip html tags from overviews --- MediaBrowser.Controller/Library/DtoBuilder.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MediaBrowser.Controller/Library/DtoBuilder.cs b/MediaBrowser.Controller/Library/DtoBuilder.cs index 04ebf3a8d..02d8eb16f 100644 --- a/MediaBrowser.Controller/Library/DtoBuilder.cs +++ b/MediaBrowser.Controller/Library/DtoBuilder.cs @@ -300,13 +300,13 @@ namespace MediaBrowser.Controller.Library { var strippedOverview = string.IsNullOrEmpty(item.Overview) ? item.Overview : item.Overview.StripHtml(); - if (fields.Contains(ItemFields.Overview)) + if (hasOverview) { dto.Overview = strippedOverview; } // 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; }