C# Class NSemble.Core.Extensions.DynamicContentHelpers

Datei anzeigen Open project: synhershko/NSemble

Public Methods

Method Description
CompiledContent ( this contentItem, bool trustContent = false, int cropAt ) : IHtmlString
CompiledStringContent ( string content, DynamicContentType contentType, bool trustContent = false, int cropAt ) : IHtmlString
TitleToSlug ( string title ) : string

Private Methods

Method Description
ConvertMarkdownCodeStatment ( string code ) : string
GenerateCodeBlock ( string lang, string code ) : string
GetFirstLineSpaces ( string firstLine ) : string
RemoveDiacritics ( string value ) : string

Strips the value from any non English character by replacing those with their English equivalent.

ReplaceNonWordWithDashes ( string title ) : string

Method Details

CompiledContent() public static method

public static CompiledContent ( this contentItem, bool trustContent = false, int cropAt ) : IHtmlString
contentItem this
trustContent bool
cropAt int
return IHtmlString

CompiledStringContent() public static method

public static CompiledStringContent ( string content, DynamicContentType contentType, bool trustContent = false, int cropAt ) : IHtmlString
content string
contentType DynamicContentType
trustContent bool
cropAt int
return IHtmlString

TitleToSlug() public static method

public static TitleToSlug ( string title ) : string
title string
return string