Fixing HTML encoding for feed tokens

This commit is contained in:
Sebastien Ros
2014-09-29 14:40:04 -07:00
parent d7a87893d7
commit fc21ebc891
2 changed files with 2 additions and 2 deletions

View File

@@ -85,7 +85,7 @@ namespace Orchard.Tokens.Providers {
FeedItem<ContentItem> item = feedItem;
context.Response.Contextualize(requestContext => {
description.Value = _tokenizer.Replace(settings.Description, new { Content = item.Item, Text = description.Value });
description.Value = _tokenizer.Replace(settings.Description, new { Content = item.Item, Text = description.Value }, new ReplaceOptions { Encoding = ReplaceOptions.NoEncode });
});
}
}

View File

@@ -15,7 +15,7 @@
<div>
<label for="@Html.FieldIdFor(m => m.Description)">@T("Description")</label>
@Html.TextBoxFor(m => m.Description, new { @class = "tokenized text medium" })
<span class="hint">@T("The description field of the RSS item")</span>
<span class="hint">@T("The description field of the RSS item. The content needs to be raw HTML, i.e. not encoded.")</span>
</div>
<div>
<label for="@Html.FieldIdFor(m => m.Author)">@T("Author")</label>