How to add URL to a logbook entry?

How to add html code to an automation creating logbook entries?

I tried but it shows non rendered html in logbook:


 action:
   - service: logbook.log
     metadata: {}
     data:
        name: Living Room Speaker playing
       entity_id: media_player.living_room_speaker
       domain: media_player
       message: >
         <a
         href="https://sample.com/{{states.media_player.living_room_speaker.attributes.media_content_id}}">YT</a>

I want it to see it as a clickable url in the logbook.