Browse Source

fix regex

pull/2875/head
Yunus Emre Kalkan 7 years ago
parent
commit
4bffabef8b
  1. 2
      modules/blogging/src/Volo.Blogging.Web/Pages/Blogs/BloggingPage.cs

2
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))
{

Loading…
Cancel
Save