Skip to main content
Version: 11.0

pc:text

note

This article is about the pc:text Blend directive.

pc:text

Concatenates all the text nodes found in its contents (including whitespace characters) and returns the result as a string.

Syntax

<pc:text>
*contents*
</pc:text>
warning

pc:text does not support the disable-output-escaping attribute, unlike pc:value-of (and XSLT's <xsl:text> and <xsl:value-of>).

Example

<pc:text>
<d att="text1">text2</d> <e>text3</e>
text4
</pc:text>

The return value is:

text2text3
text4

Attributes

The pc:text directive supports the pc:if attribute.