How to use html in getTitleFromRecordUsing

For example, by
->getTitleFromRecordUsing(fn ( $record): HtmlString => new HtmlString('<img src="'.$record->product->image.'" width="80" height="45">'))

Or, if there is some other way to do this, I would appreciate your suggestion.
Was this page helpful?