C# Class NSemble.Core.Extensions.DynamicContentHelpers

Afficher le fichier Open project: synhershko/NSemble

Méthodes publiques

Méthode 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

Méthode 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 méthode

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

CompiledStringContent() public static méthode

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

TitleToSlug() public static méthode

public static TitleToSlug ( string title ) : string
title string
Résultat string