Hi,
I'm working on a 2.1 release (I've been sort of quiet about it, but it's coming soon). I will say that my own website had used the banner for discord widgets for a bit, and we did something a little different.
This is because BAM is purposefully designed to clean javascript out of announcements. This was something that had to be done for it to meet security standards (although someone with access to the ACP could already access your templates, and therefore blocking javascript in announcements is a mute point
unless someone is using admin permissions to specifically grant access to BAM while denying everything else).
Try this instead. This will work (we did this on our own site for a while):
- Go to global templates
- Add a new template called "bam_discord" and paste your HTML widget in there.
- Add a new BAM_announcement, and put [@template:bam_discord] anywhere in your announcement's content/text. Doesn't matter where (BAM will search for it and find it.)
This is a special tag that is deliberately set to change the way BAM loads internally. It's sort of an unofficial feature specifically designed for cases like this where raw HTML needs to be loaded from a template instead of the normal, default template.
That being said, I'd like to follow up with you and look into why it cleaned out the HTML characters the way it did. You have stated you set HTML to be enabled from BAM's settings. I'll do some testing and see if there is a bug deeper down in the code. Thank you for reporting.