WireMarkupRegions::removeRegionTags()

Remove any <region> or <pw-region> tags present in the markup, leaving their innerHTML contents

Also removes data-pw-id and pw-id attributes

Usage

$bool = $wireMarkupRegions->removeRegionTags(string $html);

Arguments

NameType(s)Description
$htmlstring

Return value

bool

True if tags or attributes were removed, false if not


WireMarkupRegions methods and properties

API reference based on ProcessWire core version 3.0.268