HTML 标签/属性白名单

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 个赞

Is this what you are after?

5 个赞

Yes!!! Thank you @j.jaffeux

1 个赞