For a project I was working on recently I had snippets of plain text with links embedded but without the actual HTML code. Here's some code to get the job done: