Can custom decorator access parts of $content

astonsold

New Member
In a custom decorator, I'm wrapping the element content with a div. This code creates a \[code\]div\[/code\] around both the \[code\]<dt> label\[/code\] and the \[code\]<dd> element\[/code\]\[code\]public function render($content){ return '<div class="test">' . $content . '</div>';}\[/code\]Is there a way I can further access those 2 parts, the dd and dt. Such as maybe wrap the div around only the \[code\]<dt>\[/code\] or the \[code\]<dd>\[/code\]. How do I access the different parts of \[code\]$content\[/code\]?
 
Back
Top