mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-08 00:14:31 +08:00
Fixing HTML encoding for feed tokens
This commit is contained in:
@@ -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 });
|
||||
});
|
||||
}
|
||||
}
|
||||
|
@@ -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>
|
||||
|
Reference in New Issue
Block a user