Nucleus .Net Core CMS

ContentExtensions Class

Namespace: Nucleus.Extensions
Assembly: Nucleus.Extensions.dll
Content extensions.

Methods

ToHtml (Content) Method

ToHtml (Content content)
Converts the specified content to Html.
Parameters
Name Type
content Nucleus.Abstractions.Models.Content

ToHtml (String,String) Method

ToHtml (String content, String contentType)
Converts the specified string content to Html.
Parameters
Name Type
content String
contentType String

MIME type of the original content.

Remarks
The contentType can be text/markdown or text/plain. All other content type values are treated as text/html and are not converted.