Recently YouTube rolled out a feature that changes the text of links to YouTube videos. When you link to another YouTube video now, the link URL is automatically replaced with the target video’s title.
There is no way to do this manually, or with links to other websites.
For example, the original comment:
This music: https://www.youtube.com/watch?v=...