Registry / utility / pickles2-px2-remove-attr

pickles2-px2-remove-attr

JSON →
library2.1.1phppackagistunverified

Provides functionality to remove specified attributes from HTML documents in Pickles 2.

composer require pickles2/px2-remove-attr
INSTALL
IMPORT
SIG · PICKLES2-PX2-REMOV
P
pickles2-px2-remove-attr
utilityphpv2.1.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

RemoveAttr
use Pickles2\Px2RemoveAttr\RemoveAttr;

Remove 'class' attributes from HTML

<?php use Pickles2\Px2RemoveAttr\RemoveAttr; $remover = new RemoveAttr(); $html = '<div class="foo" id="bar">Hello</div>'; echo $remover->remove($html, ['class']);
Debug
Known issues

No known issues recorded.

Upgrade
Version history
2.1.1latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
pickles2-px2-remove-attr — pip install pickles2-px2-remove-attr · libregistry