Hi,
FormMail isn't doing this on your form as it's a straight plain text email you're sending. You can only get HTML if you instruct FormMail to use an HTML template (but see below).
Therefore, I think TinyMCE is doing this conversion (which actually makes perfect sense).
Check out this FAQ item: http://tinymce.moxiecode.com/wiki.php/TinyMCE_FAQ#TinyMCE_strip_away_attributes_or_tags_from_my_source.3F
Even if TinyMCE *didn't* do this, FormMail would do it with field values (even when using an HTML template) because it's a security problem.
For example, if an attacker could submit HTML in your form, this means they could submit code that hides or obfuscates information and make you vulnerable to attack. In the worst case, they could send you JavaScript code that executed in your mail client, or browser, and who knows what they could achieve!
Currently, the only safe thing to do is to encode any HTML entities.
Of course, for harmless stuff like <p>, and <br/>, this is too stringent.
Version 8.29 has a new configuration feature called TEXT_SUBS, which we implemented to allow special fields (like template_list_sep) to safely contain HTML strings.
A future version could conceivably utilize this feature to allow input from TinyMCE to be shown the way you want in HTML emails.
Bookmarks