GRMustache.swift icon indicating copy to clipboard operation
GRMustache.swift copied to clipboard

Is it possible to detect plain text URLs and phone links and make it an actionable link?

Open csfelipe opened this issue 6 years ago • 0 comments

Currently I use Mustache to display HTML articles that I retrieve from our web service.

I wanted to know if there's a way to make Mustache detect URLs and/or telephones without the href tag.

Mustache does its thing when we receive something like this:

  <p><a href=\ "http://www.instagram.com\">www.instagram.com</a>&nbsp;</p>
  <p><a href=\ "tel://+19145006953\" target=\ "_blank\">+19145006953</a></p>

But doesn't detect it anything when it's just raw:

<p>www.instagram.com</p>
<p>+19145006953</p>

Any suggestions? Thanks!

csfelipe avatar Aug 20 '19 21:08 csfelipe