Project

General

Profile

Actions

Bug #24389

open

HTML in forum posts

Added by Laurie Hurson 1 day ago. Updated about 5 hours ago.

Status:
Staged for Production Release
Priority name:
Normal
Assignee:
Category name:
-
Target version:
Start date:
2026-02-10
Due date:
% Done:

0%

Estimated time:
Deployment actions:

Description

Hi All,

I want to use html tags to create a heading structure in group forum post. When I add the tags to the code edit in the forum post, the visual post looks good, but in the preview below the post editor, it shows the html tags, and the html tags appear in the final posted forum post. See screenshots and post here: https://commons.gc.cuny.edu/groups/test-tesss/forum/topic/call-for-participation-open-education-publishing-institute/#post-198457

Is there a way to correct this so a user can add html tags in a forum post to create headings in the post? This is both an aesthetic and accessibility issue.

Thanks!
Laurie


Files

Actions #1

Updated by Laurie Hurson about 7 hours ago

HI All

We discussed allowing manual html header tags yesterday on the dev call and this sounds good to me (as opposed to adding a button for header tags in the visual editor).

When will this be live? Just wondering if I should wait to send out outreach via groups if this will be live soon.

Thanks!
Laurie

Actions #2

Updated by Boone Gorges about 7 hours ago

  • Assignee set to Boone Gorges
  • Target version set to 2.6.7

I'm working on it but it's not ready. It should be available for the next scheduled release, on the 24th.

Actions #3

Updated by Laurie Hurson about 7 hours ago

Sounds great! thanks Boone.

Actions #4

Updated by Boone Gorges about 5 hours ago

I've made the change in https://github.com/cuny-academic-commons/cac/commit/346f0798bf04807be9cfb192a7444e7f2def8b37 It required a bit of juggling of the string manipulation used to fix a11y issues and make bbPress's hardcoded markup compatible with our recent redesign, but I think I have it working.

As discussed in our call, I've wrapped individual posts in article tags to ensure that "starting over" the heading sequence would still be semantically valid. That said, there's no enforcement of heading order in user-generated content: if you skip levels or do other naughty things, there's nothing in place that will correct it (contrast with the block editor, which is pretty aggressive about it). I figure this is good enough for now, and we can revisit if it gets abused.

A few screenshots are attached.

Actions

Also available in: Atom PDF