The text() method entity-escapes any HTML that is passed into it. Use text() when you want to insert HTML code that will be visible to people who view the page.
Technically, your second example produces:
which would be rendered in the browser as:
Your first example will be rendered as an actual link and some bold text.