November Happy Hour will be moved to Thursday December 5th.

Class FragmentParser

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Parses a html string to static and dynamic fragments. Dynamic fragments can be either permanent links or dynamic content.

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: 9.12.2
Syntax
[ServiceConfiguration(typeof(IFragmentParser), FactoryType = typeof(FragmentParserFactory), FactoryMember = "CreateDefaultParser")]
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