I have a plugin which is checking if there is a duplicate entry before save. I'm trying to give the user back an anchor to the entry which exists so my client can switch without searching for it in a giant structure.
I have this code
$event->sender->addErrors([ 'expiryDate' => '<a href='.$entry->cpEditUrl.'>'.$entry->title.'</a>' ]);
But somehow I can't render the HTML correctly in the Control Panel, it's getting displayed as plain tekst. Is there any way to achieve this?