Div tags in user posts no longer working

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.

3 Likes

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.

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.