Whitelisting HTML tags / attributes

I vaguely remember that there was a way - using a site setting or a plugin - to add entries to the whitelist of allowed HTML tags and attributes (https://github.com/discourse/discourse/blob/master/app/assets/javascripts/pretty-text/addon/white-lister.js).

I’m not very familiar with the internals of this part of Discourse. Does anyone have some pointers on how to add to this list using a plugin or maybe even site settings?

2 Likes

Is this what you are after?

5 Likes

Yes!!! Thank you @joffreyjaffeux

1 Like