mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Changing the excerpt helper to not encode
--HG-- branch : dev
This commit is contained in:
@@ -95,7 +95,7 @@ namespace Orchard.Mvc.Html {
|
||||
|
||||
public static MvcHtmlString Excerpt(this HtmlHelper html, string markup, int length) {
|
||||
var tagRegex = new Regex("<[^<>]*>", RegexOptions.Singleline);
|
||||
var text = html.Encode(tagRegex.Replace(markup, ""));
|
||||
var text = tagRegex.Replace(markup, "");
|
||||
|
||||
return MvcHtmlString.Create(text.Ellipsize(length));
|
||||
}
|
||||
|
Reference in New Issue
Block a user