Class FragmentParser
Parses a html string to static and dynamic fragments. Dynamic fragments can be either
permanent links or dynamic content. 
Inheritance
System.Object
    FragmentParser
  Implements
Namespace: EPiServer.Core.Html.StringParsing.Internal
Assembly: EPiServer.dll
Version: 12.0.3Syntax
[ServiceConfiguration]
public class FragmentParser : Object, IFragmentParserConstructors
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)
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. | 
