MarkupQA::checkImgTags()

Quality assurance for <img> tags

Usage

// basic usage
$markupQA->checkImgTags(string $value);

// usage with all arguments
$markupQA->checkImgTags(string $value, array $options = []);

Arguments

NameType(s)Description
$valuestring
$options (optional)array

What actions should be performed:

  • replaceBlankAlt (bool): Replace blank alt attributes with file description? Default:true
  • removeNoExists (bool): Remove references to images that don't exist (or re-create images when possible) Default:true
  • removeNoAccess (bool): Remove references to images user doesn't have view permission to Default:true

MarkupQA methods and properties

API reference based on ProcessWire core version 3.0.251