Guidance whitelisting arbitrary HTML attributes?

This is exactly what @Falco linked you, read GitHub - xfalcox/discourse-hearthstone · GitHub it has everything you need.