Java HTML Encode html(String text)

Here you can find the source of html(String text)

Description

Creates an html element.

License

Open Source License

Parameter

Parameter Description
text the contents of the element.

Return

the element string.

Declaration

public static String html(String text) 

Method Source Code

//package com.java2s;
/*---------------------------------------------------------------
*  Copyright 2005 by the Radiological Society of North America
*
*  This source software is released under the terms of the
*  RSNA Public License (http://mirc.rsna.org/rsnapubliclicense)
*----------------------------------------------------------------*/

public class Main {
    /**//  w  w w  .j a  v a 2  s  .c  o  m
     * Creates an html element.
     * @param text the contents of the element.
     * @return the element string.
     */
    public static String html(String text) {
        return "<html>" + text + "</html>";
    }
}

Related

  1. forHTML(String aText)
  2. forHtmlComplete(final String aText)
  3. forHTMLTag(String aTagFragment)
  4. forHTMLTag(String aTagFragment)
  5. html(String text)
  6. html_encode(String input_string)
  7. HTMLBREncode(String str)
  8. htmlEncode(final String source, StringBuffer target)
  9. htmlEncode(Object input)