Interface IApiRichTextElementParser
Defines a parser that processes rich text content into structured elements for the Delivery API.
Namespace: Umbraco.Cms.Core.DeliveryApi
Assembly: Umbraco.Core.dll
Syntax
public interface IApiRichTextElementParser
Methods
View SourceParse(string, RichTextBlockModel?)
Parses HTML markup and optional block model into a rich text element.
Declaration
IRichTextElement? Parse(string html, RichTextBlockModel? richTextBlockModel)
Parameters
| Type | Name | Description |
|---|---|---|
| string | html | The HTML markup to parse. |
| RichTextBlockModel | richTextBlockModel | The optional rich text block model containing embedded blocks. |
Returns
| Type | Description |
|---|---|
| IRichTextElement | A rich text element, or |