|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.displaytag.util.HtmlTagUtil
public final class HtmlTagUtil
Utility methods for dealing with html tags.
| Method Summary | |
|---|---|
static java.lang.String |
abbreviateHtmlString(java.lang.String str,
int maxLength,
boolean byNumberOfWords)
Abbreviates a String which can contain html tags. |
static java.lang.String |
createOpenTagString(java.lang.String tagName,
HtmlAttributeMap attributes)
costruct a tag from a name and a collection of attributes. |
static java.lang.String |
stripHTMLTags(java.lang.String str)
Strips html tags from a String. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static java.lang.String createOpenTagString(java.lang.String tagName,
HtmlAttributeMap attributes)
tagName - String tag nameattributes - HtmlAttributeMap containing all the tag attributes
public static java.lang.String stripHTMLTags(java.lang.String str)
str - input string containing html tags (null is not handled)
public static java.lang.String abbreviateHtmlString(java.lang.String str,
int maxLength,
boolean byNumberOfWords)
str - full String. null is handled by returning nullmaxLength - maximum number of characters (excluding tags)byNumberOfWords - if true maxLength will be the number of words returned, elsewhere will
represent the number of characters.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||