Skip to main content
Format parsed data as text

Format fields into single-line or multiline text, with or without underlying HTML

Updated over 2 months ago

Prerequisite

This article assumes you are familiar with using field formats to normalize and format data in Parseur. For more information, refer to this article.

Controlling Text format

Parseur automatically sanitizes text. However, it provides two text field variations, depending on whether you want to retain newlines:

Text (Multi-line) format

This is the default format when creating a field.

“Text (multi-line)” Format extracts all visible text from emails, including newlines.

You can further adjust the output using the following input formats:

  • HTML Text (default): Parseur assumes the content contains HTML, using HTML markup to detect line breaks, which are preserved. It then removes all HTML tags from the output.

  • Plain Text: This option keeps line breaks but removes consecutive spaces. Any original HTML markup is also retained.

  • Raw Text: Keeps the original text exactly as is, without modifications.

Text (single-line) format

The “Text (single-line)” Format extracts all visible text but removes newlines. Any formatting and HTML elements are stripped, leaving only plain text.

Use this format when the output must be on a single line without line breaks.

You can also refine the output using these input formats:

  • HTML Text (default): Assumes the content contains HTML and removes all HTML tags from the result.

  • Plain Text: Removes consecutive spaces but preserves any HTML tags from the original content.

  • Raw Text: Removes line breaks but leaves everything else unchanged.

Frequently Asked Questions (FAQ)

What is the maximum character limit for fields using the single-line format?

There is no character limit. The single-line format only removes newlines and does not restrict the length of the text.

Did this answer your question?