Hi @rolandjosuran,
Thanks for your message.
You used to be able to do this so let me investigate to see why HTML might be being stripped from a notification.
Thread Starter
RJ
(@rolandjosuran)
Thank you. I haven’t tried this in the past, so I don’t know if it worked once. But now the <style>, <head> and <html> tags are stripped off.
Hi @rolandjosuran,
Can you confirm you’re using the latest version of WP (5.9) and BNFW (1.8.10)?
Thread Starter
RJ
(@rolandjosuran)
Hi,
Yes WP 5.9 and BNFW 1.8.10.
Thread Starter
RJ
(@rolandjosuran)
Hi @voltronik
HTML comments (<!-- -->) are messed up too. I want to integrate the following tag to display the email in MS outlook:
<!--[if (gte mso 9)|(IE)]></td><td align="left" valign="top"><![endif]-->
which is converted to:
<!--[if (gte mso 9)|(IE)]></td><td align="left" valign="top"><![endif]-->
It is probably a matter of configuring TinyMCE.
Hi @rolandjosuran,
I couldn’t see any different between the before and after code snippet in your previous message. Are you able to double check and re-post?
Thread Starter
RJ
(@rolandjosuran)
LOL, please excuse this silly mistake.
The < and > were converted to HTML entities, but obviously correctly interpreted here. 🙂
I try it again:
<!--[if !mso]><!-- --><link href="https://..." rel="stylesheet" /><!--<![endif]-->
is converted to (the <link> is stripped off):
‘<!–[if !mso]&_g_t_; –>&_l_t_;!–‘
I also did some investigations from my side.
- I have
unfiltered_html capability
- Disabled other plugins
- I can use this HTML in Gutenberg editor (post/page)
- Some tags are stripped when switching from text to visual editor
Hi @rolandjosuran,
Ok, thanks.
Let me investigate and i’ll get back to you.
Hi @rolandjosuran,
Just released 1.8.11 of the plugin which should fix this.
Let me know if you have any more issues with it though.
Thread Starter
RJ
(@rolandjosuran)
You are genius @voltronik !
It works like a charm.
One comment just for the record: When I switch from text to visual editor and back, some tags are still stripped. But this is actually understandable, because the visual editor is creating its own HTML. So, I just use the text editor, and everything works perfectly.
Thank you very much for this fast fix and this great plugin!
Hi @rolandjosuran,
Thanks.
Yes, I agree. I think this is actually a quirk of the TinyMCE editor, as opposed to something BNFW is doing.
If you like BNFW and the support, please feel free to leave an honest review.