Java HTML Encode toHtmlUrl(String url, String displayLabel)

Here you can find the source of toHtmlUrl(String url, String displayLabel)

Description

to Html Url

License

Open Source License

Declaration

public static String toHtmlUrl(String url, String displayLabel) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static String toHtmlUrl(String url, String displayLabel) {
        return String.format("<a href='%s'>%s</a>", url, displayLabel);
    }//from   w w  w  . ja v a 2s  .  c  om
}

Related

  1. toHtmlString(String s)
  2. toHTMLString(String str)
  3. toHtmlText(String s)
  4. toHtmlText(String text)
  5. toHtmlTitle(final String title)
  6. toHtmlValue(String s)
  7. toHtmlVerticalString(final String source)