EPTXmlTextParserWritePlainText Method (StringBuilder, String, Boolean) Content Studio 5.7 SDK
Content Studio Web Content Management System

[This is preliminary documentation and is subject to change.]

Writes the content of the document as plain text to a StringBuilder using specified options.

Namespace: ContentStudio.Document.EPT
Assembly: CSServer5 (in CSServer5.dll) Version: 5.7.5016.0 (5.7.5016.0)
Syntax

public void WritePlainText(
	StringBuilder output,
	string[] fieldsToOmit,
	bool stripHtml
)

Parameters

output
Type: System.TextStringBuilder
A StringBuilder to write to. This parameter cannot be null.
fieldsToOmit
Type: SystemString
An array of case-sensitive field names to be omitted. This parameter can be null (Nothing in Visual Basic) to indicate that no field should be omitted.
You can use * as a wildchar at the end or the start of a field name to omit a group of fields. e.g. CS_* omits all meta data fields and *ID omits all field names that ends with ID.
stripHtml
Type: SystemBoolean
A value that indicates whether embedded html formatted data should be cleaned as well. If true embedded html markup will be removed, false to preserve the content.
Exceptions

ExceptionCondition
ArgumentNullExceptionoutput cannot be null
Remarks

This method removes any Xml markup data in the EPT document and optionally any embedded Html markup as well. Each data field will be separated by a new line. The underlying data is not affected.
See Also

Reference