Roadkill.Core.Services.SearchService.GetContentSummary C# (CSharp) Method

GetContentSummary() private method

Converts the page summary to a lucene Document with the relevant searchable fields.
private GetContentSummary ( PageViewModel model ) : string
model Roadkill.Core.Mvc.ViewModels.PageViewModel
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;
		}
	}