class StripTagsOnProperty extends AbstractTransformation (View source)

Strip all tags on a given property

Properties

protected string $propertyName

Property name to change

Methods

bool
isTransformable(NodeData $node)

Returns true if the given node has the property to work on.

execute(NodeData $node)

Strips tags on the value of the property to work on.

void
setProperty(string $propertyName)

Sets the name of the property to work on.

Details

bool isTransformable(NodeData $node)

Returns true if the given node has the property to work on.

Parameters

NodeData $node

Return Value

bool

NodeData execute(NodeData $node)

Strips tags on the value of the property to work on.

Parameters

NodeData $node

Return Value

NodeData

void setProperty(string $propertyName)

Sets the name of the property to work on.

Parameters

string $propertyName

Return Value

void