private GetContentSummary ( |
||
model | ||
return | string |
internal string GetContentSummary(PageViewModel model)
{
// Turn the contents into HTML, then strip the tags for the mini summary. This needs some works
string modelHtml = model.Content;
modelHtml = _markupConverter.ToHtml(modelHtml);
modelHtml = _removeTagsRegex.Replace(modelHtml, "");
if (modelHtml.Length > 150)
modelHtml = modelHtml.Substring(0, 149);
return modelHtml;
}
}