<text>

Text processor

Core v2.2.0

Overview

The processor wraps text content and optionally converts character encoding. It's mainly used for explicit text declaration or charset conversion scenarios.

Usage Examples

Example 1: Explicit text content

example-1.xml
<?xml version="1.0" encoding="UTF-8"?>
<config xmlns="http://org.webharvest/schema/2.1/core">
<def var="message">
  <text>This is plain text content</text>
</def>
</config>

Example 2: Charset conversion

example-2.xml
<?xml version="1.0" encoding="UTF-8"?>
<config xmlns="http://org.webharvest/schema/2.1/core">
<def var="latinText">
  <text charset="ISO-8859-1">
    <file path="legacy-file.txt" action="read"/>
  </text>
</def>
</config>