goog.string.linkify
Namespace.findFirstEmail(text)
Gets the first email address in text.
text
{string
}
string
}
.findFirstUrl(text)
Gets the first URI in text.
text
{string
}
string
}
.linkifyPlainText(text, opt_attributes)
Takes a string of plain text and linkifies URLs and email addresses. For a URL (unless opt_attributes is specified), the target of the link will be _blank and it will have a rel=nofollow attribute applied to it so that links created by linkify will not be of interest to search engines.
text
{string
}
opt_attributes
{Object
.<string
, string
>=}
string
}