fix #1272 Check the content of post.

pull/1296/head
maliming 6 years ago
parent 97471c177d
commit 9bc03b4b90

@ -70,6 +70,11 @@ namespace Volo.Blogging.Pages.Blog
public string RenderMarkdownToString(string content)
{
if (content.IsNullOrWhiteSpace())
{
return "";
}
byte[] bytes = Encoding.Default.GetBytes(content);
var utf8Content = Encoding.UTF8.GetString(bytes);

Loading…
Cancel
Save