When using the Gin admin theme, the page title shows visible markup tags

Created on 4 July 2023, over 1 year ago
Updated 4 February 2024, 11 months ago

Problem/Motivation

The Gin admin theme (or other themes that may use hook_preprocess_html_title) may override the output of this module's hook implementation. The Gin admin theme has a function gin_preprocess_page_title that takes precedence over this module's implementation, and does not properly strip tags from the title.

Steps to reproduce

Install the Gin admin theme and set it as the administration theme. Visit a node whose title is using markup tags. You will see a page title markup similar to Edit Page My <em>example</em> page title

Proposed resolution

The following patch adds logic in hook_theme_registry_alter in order to ensure that html_title's implementation is used over the theme's implementation.

πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States jessehs Taos, New Mexico

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

Comments & Activities

Production build 0.71.5 2024