public Blog GetBlogFull(int id) { var blog = DB.Blog.First(x => x.Id == id); blog.Post = BBCode.ParsePost(blog.Post); return(blog); }
private string GetPreviewPost(string post) { post = BBCode.ParsePost(post); var temp = post.Split("<br />", StringSplitOptions.RemoveEmptyEntries); return(temp[0] + "<br /><br />" + (temp.Count() > 1 ? temp[1] : "")); }
public MarkupString GetFullPreview(string post) { return((MarkupString)BBCode.ParsePost(post)); }