mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +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;
|
FeedItem<ContentItem> item = feedItem;
|
||||||
context.Response.Contextualize(requestContext => {
|
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>
|
<div>
|
||||||
<label for="@Html.FieldIdFor(m => m.Description)">@T("Description")</label>
|
<label for="@Html.FieldIdFor(m => m.Description)">@T("Description")</label>
|
||||||
@Html.TextBoxFor(m => m.Description, new { @class = "tokenized text medium" })
|
@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>
|
||||||
<div>
|
<div>
|
||||||
<label for="@Html.FieldIdFor(m => m.Author)">@T("Author")</label>
|
<label for="@Html.FieldIdFor(m => m.Author)">@T("Author")</label>
|
||||||
|
|||||||
Reference in New Issue
Block a user