GetTextNormalize

Description

Obtains the text data that is contained within the current PBDOM_TEXT object, with all surrounding whitespace characters removed and internal whitespace characters normalized to a single space.

Syntax

pbdom_text_name.GetTextNormalize()

Argument

Description

pbdom_text_name

The name of a PBDOM_TEXT object


Return value

String.

Examples

If you have a PBDOM_TEXT object that represents the text node " MY TEXT ", calling GetTextNormalize returns the string "MY TEXT". All surrounding whitespaces are removed, and the whitespaces between the words "MY" and "TEXT" are reduced to a single space.

Usage

This method allows the caller to obtain the text data that is contained within the current PBDOM_TEXT object with all surrounding whitespaces removed and internal whitespaces normalized to single spaces. If no textual value exists for the current PBDOM_TEXT object, or if only whitespaces exist, an empty string is returned.

See also

GetText

GetTextTrim, SetText