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.Internal
Assembly: EPiServer.dll
Version: 11.20.7Syntax
[ServiceConfiguration(typeof(IFragmentParser), FactoryType = typeof(FragmentParserFactory), FactoryMember = "CreateDefaultParser")]
public class FragmentParser : IFragmentParser
Constructors
FragmentParser(ServiceAccessor<IEnumerable<IFragmentElementHandler>>, IEnumerable<IFragmentAttributeHandler>)
Declaration
public FragmentParser(ServiceAccessor<IEnumerable<IFragmentElementHandler>> fragmentElementHandlers, IEnumerable<IFragmentAttributeHandler> fragmentAttributeHandlers)
Parameters
Type | Name | Description |
---|---|---|
ServiceAccessor<System.Collections.Generic.IEnumerable<IFragmentElementHandler>> | fragmentElementHandlers | |
System.Collections.Generic.IEnumerable<IFragmentAttributeHandler> | fragmentAttributeHandlers |
Methods
Parse(String, FragmentParserMode, Boolean)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. 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 |
Returns
Type | Description |
---|---|
StringFragmentCollection | A list of IStringFragments. |