FormatRichTextViewHelper 

New in version 12.0.0

Renders the submitted value of a rich text element of the event form (properties.dbMapping.dataType: richText) in the mails of the finisher EmailToReceiver of EXT:form.

The value is sanitized with the same configuration as on saving, see Modify the allowed markup of the frontend rich text editor. The table is taken from properties.dbMapping.table (default: tx_events2_domain_model_event), the column from properties.dbMapping.column of the form element. So the moderator sees the formatting which will be stored, without attributes of the editor and without active content. Links with t3:// are removed, as they can not be resolved in a mail.

Arguments of the FormatRichTextViewHelper 

element
The form element of the value, usually {formValue.element} of <formvh:renderAllFormValues>. Required.
value
The submitted value, usually {formValue.processedValue}. Required.
format
html (default) returns the sanitized HTML. plaintext returns plain text with line breaks for the text part of a mail. The plain text is not escaped, so do not use it in HTML.

Example for the FormatRichTextViewHelper 

EXT:my_sitepackage/Resources/Private/FormFramework/Templates/Finishers/Email/EventModeration.html (excerpt)
{namespace e2=JWeiland\Events2\ViewHelpers}

<e2:formatRichText element="{formValue.element}"
                   value="{formValue.processedValue}"/>
Copied!
EXT:my_sitepackage/Resources/Private/FormFramework/Templates/Finishers/Email/EventModeration.txt (excerpt)
<e2:formatRichText element="{formValue.element}" value="{formValue.processedValue}" format="plaintext"/>
Copied!