Use error control operator @ for DOM load

Created on 14 December 2023, 7 months ago

When using the DOM import process plugin to parse HTML that includes media entity <drupal-media> tags, I get lots of warnings:

DOMDocument::loadHTML(): Tag drupal-media invalid in Entity, line: 1 Dom.php:186

I patched to suppress errors with "@" on the DOM load functions.

Is there a better way to handle this?

πŸ’¬ Support request
Status

Active

Version

6.0

Component

Plugins

Created by

πŸ‡ΊπŸ‡ΈUnited States jeffschuler Boulder, Colorado

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

Comments & Activities

Production build 0.69.0 2024