Error when <br> included in allowed tags

Created on 1 November 2023, 8 months ago
Updated 27 November 2023, 7 months ago

Problem/Motivation

When including <br> in the list of allowed heading tags, and generating a ToC for a document that contains soft returns within headings you get an error.

Warning: DOMDocumentFragment::appendXML(): Entity: line 2: parser error : Opening and ending tag mismatch: br line 2 and h2

Steps to reproduce

See test

Proposed resolution

Use HTML utility class to ensure br tags can be used in headings.

πŸ› Bug report
Status

Closed: outdated

Version

1.0

Component

Code

Created by

πŸ‡³πŸ‡ΏNew Zealand ericgsmith

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

Merge Requests

Comments & Activities

Production build 0.69.0 2024