Created
December 28, 2022 17:59
-
-
Save brianleejackson/4052a17203b14d19ff0511ba4d6bdd80 to your computer and use it in GitHub Desktop.
Remove additional line breaks in Fluent Forms WordPress plugin
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter('fluentform_response_render_textarea', function ($value, $field, $formId, $isHtml) { | |
if (false != strpos($value, '<br />')) { | |
$value = str_replace('<br />', '', $value); | |
} | |
return '<span style="white-space: pre-line">' . $value . '</span>'; | |
}, 15, 4); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment