Hi @mlchrt,
On checking further it seems like the issue is more specific when you use individual macro fields inside the email notifications ie {textarea-1}
When you use {all_fields} then it works fine when tested.
To get it to work with your current setup, you can try this snippet:
<?php
add_filter( 'forminator_prepared_data', 'wpmudev_strip_textarea_html', 10, 2 );
function wpmudev_strip_textarea_html( $prepared_data, $module_object ){
if( $module_object->id != 2235 ){
return $prepared_data;
}
foreach( $prepared_data as $key => $value ){
if( strpos( $key, 'textarea' ) !== false ){
if( $value ){
$prepared_data[ $key ] = wp_strip_all_tags( $value );
}
}
}
return $prepared_data;
}
You’ll need to update the following line in the above code with your Form ID, ie support your form ID is 123, the above line ie:
if( $module_object->id != 2235 ){
Will change to:
if( $module_object->id != 123 ){
You can implement the above code as a mu-plugins. Please check this link on how to implement the above code as a mu-plugins:
https://wpmudev.com/docs/using-wordpress/installing-wordpress-plugins/#installing-mu-plugins
Kind Regards,
Nithin