How to render HTML on $subheading

Im trying to render HTML to the subheading but cant find a way around this.
this is the code i have so far:
protected function getSubheading(): string|Htmlable|null
    {
        return  "<span class='text-sm text-gray-500'>".$this->record->pallet_no."</span>";
    }

and this is the result:
image.png
Was this page helpful?