linkify.js
No description.

File Location

/goog/string/linkify.js


Public Protected Private

Global Functions

goog.string.linkify.findFirstEmail(text) string
Gets the first email address in text.
Arguments:
text : string
Plain text.
Returns: string  The first email address, or an empty string if not found.
code »
goog.string.linkify.findFirstUrl(text) string
Gets the first URI in text.
Arguments:
text : string
Plain text.
Returns: string  The first URL, or an empty string if not found.
code »
goog.string.linkify.linkifyPlainText(textopt_attributes) string
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.
Arguments:
text : string
Plain text.
opt_attributes : Object.<string, string>>
Attributes to add to all links created. Default are rel=nofollow and target=blank. To clear those default attributes set rel='' and target='_blank'.
Returns: string  HTML Linkified HTML text.
code »

Directory string

File Reference