modifier.add_styles.php
18 * {$html|add_styles:['p' => 'contact lh-title f4 f3-m f2_3-l near-black db pb2 l','a' => 'link near-black']}
23 * @param $onlyIfUnstyled Boolean indicating whether to add styles only, if the element has no classes or always (default: true)
27 return strlen($html) > 0 ? DOMUtils::processHtml($html, function(\DOMDocument $doc) use ($styles, $onlyIfUnstyled) {