How to get the domain name from anchor href attribute?

后端 未结 4 1934
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-22 00:56

I have a url like e.g.:

http://www.intereconomia.com/noticias-gaceta/politica/grinan-los-casos-corrupcion-pueden-influir-20120226

I want on

4条回答
  •  悲哀的现实
    2020-12-22 02:00

    You can add text to display for the link:
    Click Here

    However, I would not suggest making the text http://www.intereconomia.com as that is usually seen as a bad practice to link to an inner-page when the user is expecting to go to http://www.intereconomia.com

    Instead use a descriptive link to mask the url.

提交回复
热议问题