Import of strings skipped due to malformed HTML tag <br/>

Created on 30 May 2025, 3 days ago

Problem/Motivation

A lot of new features were recently added, which is great!

However, new texts were added with the HTML tag <br/>, which causes a challenge with the translation system. I get five errors like this, when I install the module with Drush:

[error] Import of string "Sætter hoverIntent timeout aktivering (trin på 250 ms).<br/>Jo højere værdien er, desto længere tid vil menuen forblive vist, efter musen har forladt den (standard: 500ms)." was skipped because of disallowed or malformed HTML.

Steps to reproduce

Install the module in another language than English, with translations such as Danish, and see errors.

Proposed resolution

Replace <br/> with either <br> or <br />. Both are used in Drupal core:

  • $ grep '<br>' web/sites/default/files/translations/drupal-10.4.7.da.po | wc -l
    6
  • $ grep '<br />' web/sites/default/files/translations/drupal-10.4.7.da.po | wc -l
    9

Remaining tasks

Replace <br/> in translatable strings.

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

3.0

Component

Code

Created by

🇩🇰Denmark ressa Copenhagen

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