com.atlassian.bamboo.util
Class HtmlUtils
java.lang.Object
com.atlassian.bamboo.util.HtmlUtils
public class HtmlUtils
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WBR
public static final String WBR
- See Also:
- Constant Field Values
HtmlUtils
public HtmlUtils()
getAsPreformattedText
public String getAsPreformattedText(Object o)
- Escapes the passed object as a string. The method:
- Escapes HTML
- replaces all double spaces with
chars
- Allows \/ characters to have line breaks after them
- Parameters:
o
- - Any object, can be null
- Returns:
- escaped string
getFirstNLines
public String getFirstNLines(String s,
int lines)
- Returns the first n lines of the passed string
- Parameters:
s
- - can be nulllines
- must be > 0
- Returns:
- first n lines inclusive. So if there are no new line characters, the entire string is returned. Empty string
if null was passed
getFirstNLinesWithTrailer
public String getFirstNLinesWithTrailer(String s,
int lines)
breakOnWord
public String breakOnWord(String text)
appendUrls
public String appendUrls(String url1,
String url2)
Copyright © 2006 Atlassian Software Systems. All Rights Reserved.