HTMLPurifier_UnitConverter::convert
Converts a length object of one unit into another unit.
Signature
public function convert(HTMLPurifier_Length
$length,
string
$to_unit )
Parameters
$length
— object
Instance of HTMLPurifier_Length to convert. You must validate()
it before passing it here!$to_unit
— string
Unit to convert to.