Warning when used with entity embed

Created on 17 August 2024, 4 months ago
Updated 3 September 2024, 4 months ago

Problem/Motivation

When used with embed entity, the loadHTML is creating a warning since it contains an invalid tag

Warning: DOMDocument::loadHTML(): Tag drupal-entity invalid in Entity, line: 1 in auto_alter_entity_presave() (line 55 of modules/contrib/auto_alter/auto_alter.module).

Steps to reproduce

Proposed resolution

We could use a similar solution as this module:

    $html5 = new HTML5(['disable_html_ns' => TRUE]);
    $dom = $html5->loadHTML($field_value);

https://git.drupalcode.org/project/ckeditor_mentions/-/merge_requests/4/...

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

🇨🇦Canada phjou Vancouver 🇨🇦 🇪🇺

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

Comments & Activities

Production build 0.71.5 2024