Class Linkifier

java.lang.Object
com.barbarysoftware.linkifier.Linkifier

public class Linkifier extends Object
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
This is not intended to be a full, generic solution. It exists only for improving suggestion descriptions and comments in Feature Upvote
  • Constructor Details

    • Linkifier

      public Linkifier()
  • Method Details

    • linkify

      public static String linkify(String input)
      Linkifies a String
      Parameters:
      input - the String to linkify
      Returns:
      a linkified String