Try our conversational search powered by Generative AI!

Class FragmentParser

Parses a html string to static and dynamic fragments. Dynamic fragments can be either permanent links or dynamic content.
This class supports the EPiServer infrastructure and is not intended to be used directly from your code.

Inheritance
System.Object
FragmentParser
Implements
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Core.Html.StringParsing
Assembly: EPiServer.dll
Version: 7.19.2
Syntax
public class FragmentParser : IFragmentParser

Constructors

FragmentParser(IFragmentElementHandler[], IFragmentAttributeHandler[])

Initializes a new instance of the FragmentParser class.

Declaration
public FragmentParser(IFragmentElementHandler[] fragmentElementHandlers, IFragmentAttributeHandler[] fragmentAttributeHandlers)
Parameters
Type Name Description
IFragmentElementHandler[] fragmentElementHandlers

The fragment element handlers.

IFragmentAttributeHandler[] fragmentAttributeHandlers

The fragment attribute handlers.

Methods

Parse(String, FragmentParserMode, Boolean)

This class and its members are reserved for internal use and will be refectored to next release.

Declaration
public StringFragmentCollection Parse(string html, FragmentParserMode parserMode, bool evaluateHash)
Parameters
Type Name Description
System.String html

The HTML.

FragmentParserMode parserMode

The parser mode to use.

System.Boolean evaluateHash

if set to true evaluate the hash code for dynamic content.

Returns
Type Description
StringFragmentCollection

A list of IStringFragments.

Implements

Extension Methods