Allow reporting errors on Html::load()

Created on 6 March 2018, over 6 years ago
Updated 31 March 2023, over 1 year ago

Problem/Motivation

When using \Drupal\Component\Utility\Html::load(), the code is avoiding errors with the @ prefix.
Those can be useful in some situations, e.g. letting people know how to improve its html writing skills.
In the context of using this during migration, there should be a way to log HTML errors found in the source.

Proposed resolution

Add an optional parameter to show errors.

Remaining tasks

  • Add test coverage for the new option.

User interface changes

N.A.

API changes

New extra, and optional parameter for \Drupal\Component\Utility\Html::load().

Data model changes

N.A.

Feature request
Status

Needs work

Version

10.1

Component
Base 

Last updated about 3 hours ago

Created by

🇵🇪Peru marvil07

Live updates comments and jobs are added and updated live.
  • Novice

    It would make a good project for someone who is new to the Drupal contribution process. It's preferred over Newbie.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024