ContentExtensions Class
Namespace: Nucleus.Extensions
Assembly: Nucleus.Extensions.dll
Content extensions.
Methods
ConvertTo
(Content, String) Method
ConvertTo (Content content, String targetContentType)
ToHtml
(Content) Method
ToHtml (Content content)
Convert the specified content to Html.
ToHtml
(String, String) Method
ToHtml (String content, String fromContentType)
Return a string containing the conversion of the specified
Models.Content object's
Value to Html.
Parameters
| Name |
Type |
|
content
|
String
|
|
fromContentType
|
String
MIME type of the original content.
|
Returns
The converted content string.
ToMarkdown
(Content) Method
ToMarkdown (Content content)
Return a string containing the conversion of the specified
Models.Content object's
Value to Markdown.
ToMarkdown
(String, String) Method
ToMarkdown (String content, String fromContentType)
Converts the specified string content to Markdown.
Parameters
| Name |
Type |
|
content
|
String
|
|
fromContentType
|
String
MIME type of the original content.
|
Returns
The converted content string.
ToText
(Content) Method
ToText (Content content)
Return a string containing the conversion of the specified
Models.Content object's
Value to plain text.
ToText
(String, String) Method
ToText (String content, String fromContentType)
Convert the specified string content to plain text.
Parameters
| Name |
Type |
|
content
|
String
|
|
fromContentType
|
String
MIME type of the original content.
|
Returns
The converted content string.