Package com.barbarysoftware.linkifier
Class Linkifier
java.lang.Object
com.barbarysoftware.linkifier.Linkifier
Converts text so that any website links in the text is wrapped in an HTML A tag.
- Only works on URLs. Email addresses, etc are not converted
- Links open in new tab
- If a scheme has to be added, http is used. eg: example.com links to http://example.com
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Linkifier
public Linkifier()
-
-
Method Details
-
linkify
Linkifies a String- Parameters:
input- the String to linkify- Returns:
- a linkified String
-