From 4bffabef8bc05f02a0cee148adfc096f18ec894b Mon Sep 17 00:00:00 2001 From: Yunus Emre Kalkan Date: Thu, 20 Feb 2020 15:30:58 +0300 Subject: [PATCH] fix regex --- .../blogging/src/Volo.Blogging.Web/Pages/Blogs/BloggingPage.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/blogging/src/Volo.Blogging.Web/Pages/Blogs/BloggingPage.cs b/modules/blogging/src/Volo.Blogging.Web/Pages/Blogs/BloggingPage.cs index 0808432521..3c26a38ac7 100644 --- a/modules/blogging/src/Volo.Blogging.Web/Pages/Blogs/BloggingPage.cs +++ b/modules/blogging/src/Volo.Blogging.Web/Pages/Blogs/BloggingPage.cs @@ -33,7 +33,7 @@ namespace Volo.Blogging.Pages.Blog public string GetShortContent(string content) //TODO: This should be moved to its own place! { var html = RenderMarkdownToString(content); - var plainText = Regex.Replace(html, "/<[^>]*>/g", ""); + var plainText = Regex.Replace(html, "<[^>]*>", ""); if (string.IsNullOrWhiteSpace(plainText)) {