aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukePulverenti <luke.pulverenti@gmail.com>2013-03-12 18:53:04 -0400
committerLukePulverenti <luke.pulverenti@gmail.com>2013-03-12 18:53:04 -0400
commit37d27ec0c3c87fdfcaab3b5ac3a299a57b9d552e (patch)
treea12b4e56b92cce30445553c9e061b0ae5d487bb1
parente5cd49e5671008d06d9c14ed6ee633200d6dae32 (diff)
#22 - Need to strip html tags from overviews
-rw-r--r--MediaBrowser.Controller/Library/DtoBuilder.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/MediaBrowser.Controller/Library/DtoBuilder.cs b/MediaBrowser.Controller/Library/DtoBuilder.cs
index 22e260547..ee4ce1010 100644
--- a/MediaBrowser.Controller/Library/DtoBuilder.cs
+++ b/MediaBrowser.Controller/Library/DtoBuilder.cs
@@ -295,12 +295,12 @@ namespace MediaBrowser.Controller.Library
if (fields.Contains(ItemFields.Overview))
{
- dto.Overview = item.Overview;
+ dto.OverviewHtml = string.IsNullOrEmpty(item.Overview) ? item.Overview : item.Overview.StripHtml();
}
if (fields.Contains(ItemFields.OverviewHtml))
{
- dto.OverviewHtml = string.IsNullOrEmpty(item.Overview) ? item.Overview : item.Overview.StripHtml();
+ dto.Overview = item.Overview;
}
// If there are no backdrops, indicate what parent has them in case the Ui wants to allow inheritance