* @return plain text escaped for html\r
*/\r
public static String escapeForHtml(String inStr, boolean changeSpace) {\r
- StringBuffer retStr = new StringBuffer();\r
+ StringBuilder retStr = new StringBuilder();\r
int i = 0;\r
while (i < inStr.length()) {\r
if (inStr.charAt(i) == '&') {\r
* @return properly escaped url\r
*/\r
public static String encodeURL(String inStr) {\r
- StringBuffer retStr = new StringBuffer();\r
+ StringBuilder retStr = new StringBuilder();\r
int i = 0;\r
while (i < inStr.length()) {\r
if (inStr.charAt(i) == '/') {\r
public void renderHead(IHeaderResponse response) {\r
String contentType = "application/rss+xml";\r
\r
- StringBuffer buffer = new StringBuffer();\r
+ StringBuilder buffer = new StringBuilder();\r
buffer.append("<link rel=\"alternate\" ");\r
buffer.append("type=\"").append(contentType).append("\" ");\r
buffer.append("title=\"").append(feedTitle).append("\" ");\r