Problem/Motivation

Great timing, but I was debugging some filter formats and needed this module, so thanks! :D

One issue I had was assuming the name of the filter format:

protected function getStrippedItems(string $value, string $format_id) : array {
    /** @var \Drupal\filter\FilterFormatInterface $filter */
    $filter = $this->entityTypeManager->getStorage('filter_format')->load('basic_html');

My fallback filter was plain_text which doesn't have the "Limited allowed tags" filter enabled, so essentially the whole report was not run.

Steps to reproduce

Proposed resolution

Fix is easy, looks like it was basically a typo.

Remaining tasks

User interface changes

API changes

Data model changes

CommentFileSizeAuthor
#2 3215561-2.patch717 bytessam152

Comments

Sam152 created an issue. See original summary.

sam152’s picture

Status: Active » Needs review
StatusFileSize
new717 bytes

  • larowlan committed 322d9f1 on 1.x authored by Sam152
    Issue #3215561 by Sam152: Audit assumes your filter format ID is "...
larowlan’s picture

Status: Needs review » Fixed

cheers, this will go out as 1.0.0-rc4

larowlan’s picture

sam152’s picture

Nice, thanks.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.