Div tags in user posts no longer working

AI-generated summary

Users reported that div tags in posts are no longer functioning after updating to Discourse 2.9.0 beta4, specifically affecting new posts. Caswal_Parker noted the issue started after upgrading from beta3 and suspected it was due to uninstalling the Awesome BBCodes plugin. SaraDev confirmed the issue on beta4. sam explained that style tags are not allowed by default due to abuse concerns, and the issue likely stems from a plugin removal that removed these tags from the allow list. Caswal_Parker resolved it by creating a custom plugin to re-enable style tags, as their moderated forum poses minimal risk.

Not quite sure what has happened. A lot of users on our forums make use of HTML div tags for formatting their posts, e.g.

<div style="font-family:verdana; font-weight:bold; font-size:30px; text-align:center; ">Some Title Text </div>

This only affects making new posts, existing posts are fine. After my update to 2.9.0 beta4 from beta3. Users can no longer style their div tags? Is this fixable?

I did not have a chance to test this with Discourse version 2.9.0 beta3, so I cannot speak as to how this was working in previous versions, however, I did confirm that div tags do not appear to be formatting in topic posts on version 2.9.0 beta4.

This is likely related to you uninstalling a plugin. Plugins may add certain tags and attributes to the allow list.

Style tag is not allowed by default as they can cause extreme amounts of abuse.

Yeah, I figured it was probably due to having uninstalled awesome bbcodes.

I made a simple plugin to whitelist style tags again. Our forum is well moderated and so far hasn’t been a problem.