Java HTML Encode htmlize(String str)

Here you can find the source of htmlize(String str)

Description

Surrounds string with html

License

Open Source License

Parameter

Parameter Description
str a parameter

Return

string with html tags sorrounded.

Declaration

public static String htmlize(String str) 

Method Source Code

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

public class Main {
    /**/*from   w  w  w .  ja v  a2s . co  m*/
     * Surrounds string with html
     *
     * @param str
     * @return string with html tags sorrounded.
     */
    public static String htmlize(String str) {
        return "<html>" + str + "</html>";
    }
}

Related

  1. htmlEncoded(String text)
  2. htmlEncoder(String content)
  3. htmlEncoding(String str)
  4. htmlEntityEncode(String s)
  5. htmlize(CharSequence q)
  6. htmlize(String text)
  7. htmlize(StringBuffer sb)
  8. htmlSpecialChars(String handleStr)
  9. htmlSpecialChars(String html)