removed the automatic HTML escaping from content headers and moved it out

to the JSPs and other classes as needed...this may speed up things a tiny bit,
but will definitely help in displaying topic names with HTML and escaped
characters correctly
This commit is contained in:
Eric J. Bowersox
2002-01-16 23:23:57 +00:00
parent 5bf40a92a1
commit 70b7b826a0
23 changed files with 65 additions and 49 deletions

View File

@@ -711,9 +711,9 @@ public class RootConfig implements LinkTypes, ColorSelectors
public final String getContentHeader(String primary, String secondary)
{
StringBuffer buf = new StringBuffer(content_hdr[0]);
buf.append(StringUtil.encodeHTML(primary)).append(content_hdr[1]);
buf.append(primary).append(content_hdr[1]);
if (secondary!=null)
buf.append(content_hdr[2]).append(StringUtil.encodeHTML(secondary)).append(content_hdr[3]);
buf.append(content_hdr[2]).append(secondary).append(content_hdr[3]);
buf.append(content_hdr[4]);
return buf.toString();

View File

@@ -11,7 +11,7 @@
*
* The Initial Developer of the Original Code is Eric J. Bowersox <erbo@silcom.com>,
* for Silverwrist Design Studios. Portions created by Eric J. Bowersox are
* Copyright (C) 2001 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved.
* Copyright (C) 2001-02 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved.
*
* Contributor(s):
*/
@@ -106,7 +106,7 @@ public class UtilHeaderTag extends VeniceBodyTagSupport
public void setTitle(String s)
{
title = s;
title = s.trim();
} // end setTitle
@@ -118,7 +118,7 @@ public class UtilHeaderTag extends VeniceBodyTagSupport
public void setSubtitle(String s)
{
subtitle = s;
subtitle = s.trim();
} // end setSubtitle

View File

@@ -57,7 +57,7 @@ public class CommunityMenu implements MenuComponent, ColorSelectors, LinkTypes
} // end catch
title = ctxt.getName();
title = StringUtil.encodeHTML(ctxt.getName());
items_list = items;
cid = ctxt.getCommunityID();
show_unjoin = ctxt.canUnjoin();