FromMarkupAndResourceFolder

EditableDocument.FromMarkupAndResourceFolder method

Static factory, that creates an instance of EditableDocument from a specified HTML markup and from resources, located in the folder, specified by the full path

public static EditableDocument FromMarkupAndResourceFolder(string newHtmlContent, 
    string resourceFolderPath)
Parameter Type Description
newHtmlContent String String, that contains raw HTML markup, that should be parsed. Cannot be NULL, empty or invalid.
resourceFolderPath String Mandatory path to the folder with resources. All stylesheets, which are located in this folder, will be used. Cannot be NULL or empty string, and this folder should exists.

Return Value

New non-null instance of EditableDocument

Remarks

This static factory is useful when content of HTML document is presented as a string, but all resources are located in some folder, and often links to these resources in HTML markup are invalid and absent. When invoking this method, it scans specified folder and automatically applies all found stylesheets to the document. This method is very useful when obtaining content from different HTML editors, which usually cut off the document metadata and so on.

See Also