What you trying is a security risk. It is not clever to let users input html code on your site - they can make some pretty nasty stuff.
That is why in all kind of forums and comments you have bbcode.
In your case you just need write the url, selecte it and click the url button. Or just write