returning text and not element in url detection

前端 未结 0 1374
甜味超标
甜味超标 2021-02-13 11:22

I am getting data from an api that I want to detect URLs in and turn them into anchor tags

  const turnIntoLink =(text)=>{
    const urlRegex = /(\\b(https?|ft         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题