I’ve got a form with a hidden field that is getting a value passed in via shortcode. The value contains line breaks. I’ve confirmed that in the raw HTML (via View Source) these are just invisible line break characters, not HTML <br />
tags.
I’ve also confirmed in the wp_gf_entry_meta
table that they are just stored as invisible line break characters, not <br />
tags.
However, in both the notification emails and on the admin entry detail screen, these render as a visible <br />
on-screen (without a line break).
My guess is that somewhere along the way, both nl2br()
and htmlentities()
(or WP/GF functions that do similar things) are being applied to the text string.
Has anyone else run into this issue or know of a solution? Thanks!