Error when <br> included in allowed tags

Created on 1 November 2023, over 1 year ago
Updated 27 November 2023, over 1 year 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.71.5 2024