Preserve text white space
- Last UpdatedJul 26, 2024
- 1 minute read
When text not in a CDATA element is processed, the leading and trailing spaces are removed. As a result, an element such as <Title> MyWindowName</Title> results in a window name of 'MyWindowName' without leading spaces.
To preserve leading and trailing white space in any text, enclose the text within a CDATA element. For example, an element <Title><![CDATA[MyWindowName]]></Title> results in a window name of "MyWindowName".