$busterhtml()

Cache bust any assets linked in the given HTML

This uses the TextformatterBuster module

Usage

// basic usage
$string = $buster->html(string $html);

// usage with all arguments
$string = $buster->html(string $html, array $options = []);

Arguments

NameType(s)Description
$htmlstring

HTML to bust

$options (optional)array

Optionally modify defaults for TextformatterBuster:

  • exts (array): File extensions to bust
  • attrs (array): HTML attributes to look for files in
  • Note the defaults for these options are those configured with the TextformatterBuster module.

Return value

string


$buster methods and properties

API reference based on ProcessWire core version 3.0.252