Class XHtmlTagTool

java.lang.Object
org.exoplatform.webui.form.wysiwyg.XHtmlTagTool

public class XHtmlTagTool extends Object
Tool to construct a XHTML-tag.

Usage:
 XHtmlTagTool tag = XHtmlTagTool("a", "link");
 tag.addAttribute("href", "http://google.com");
 tag.toString();  : <a href="http://google.com">link</a>
 
Hint:
  • Attributes are not ordered.
  • If your tag shouldn't have a value but the tag has to close with '</[tagname]>', set the value to SPACE.
Version:
$Id: XHtmlTagTool.java 1719 2008-03-18 11:08:52Z mosipov $
  • Field Details

  • Constructor Details

    • XHtmlTagTool

      public XHtmlTagTool(String name, String value)
    • XHtmlTagTool

      public XHtmlTagTool(String name)
  • Method Details