Likert table answer text/description TD cell not rendering HTML

Created on 6 February 2025, 4 months ago

Problem/Motivation

When using a likert table the "Answer text/description" field does not accept HTML, in my case an emoji or Bootstrap icon (see screenshot). This includes the span with .webform-likert-label class.

Steps to reproduce

The likert table "shifts" tables for mobile layouts, so the <thead> is hidden and in the <tbody> > <td> the .webform-likert-label is unhidden to compensate.

  1. Create webform with a likert table and in one of your answers try wrapping the text with <strong></strong> or a Bootstrap icon like <i class="bi bi-emoji-smile"></i>
  2. If you're not seeing anything wrong on your desktop, look at the likert table on your phone and...
  3. ...you should see the HTML you attempted to use rendered as plain text.

Proposed resolution

Allow likert TDs, especially .webform-likert-label to accept HTML.

πŸ› Bug report
Status

Active

Version

6.2

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States yospyn

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024