GetBodyContent
GetBodyContent()
Returns a body of the HTML document (inner content between opening and closing BODY tags without these tags) as a string.
public string GetBodyContent()
Return Value
String, which contains the body of the HTML document (without opening and closing BODY tags)
Remarks
Most of WYSIWYG editors usually operate with the inner content of the BODY of the document and cannot correctly process its meta information from the HEAD block. This method is designed for such cases. This overload doesn’t allow to adjust URIs for external resource requests.
See Also
- class EditableDocument
- namespace GroupDocs.Editor
- assembly GroupDocs.Editor
GetBodyContent(string)
Returns a body of the HTML document (inner content between opening and closing BODY tags without these tags) as a string, where links to the external resources contain specified template with placeholders.
public string GetBodyContent(string externalImagesTemplate)
Parameter | Type | Description |
---|---|---|
externalImagesTemplate | String | Through this parameter used can specify a string template with one placeholder, which will be applied to the links to all external images in IMG elements, which will be present in the resultant HTML string. If NULL or empty, template will not be added, and pure filenames will be present in the resultant HTML markup. Is template is invalid, it will be treated as a prefix, so filenames will be concatenated to the its end. |
Return Value
String, which contains the body of the HTML document (without opening and closing BODY tags) with links, adjusted to the external images
Remarks
Most of WYSIWYG editors usually operate with the inner content of the BODY of the document and cannot correctly process its meta information from the HEAD block. This method is designed for such cases. This overload allows to adjust URIs for external resource requests.
See Also
- class EditableDocument
- namespace GroupDocs.Editor
- assembly GroupDocs.Editor