Microsoft Knowledge Base Article
This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved.
Terms
of Use |
Trademarks
Article ID: 938958 - Last Review: June 27, 2007 - Revision: 1.3
All character strings in the database are HTML-encoded after you install Content Management Server 2002 Service Pack 2
After you install Microsoft Content Management Server 2002 Service Pack 2 (SP2), all character strings in the database are HTML-encoded.
This behavior occurs because Content Management Server 2002 SP2 implements the HTML 4.01 specification. In the HTML 4.01 specification, character strings in a database or in an HTML source are converted to HTML-encoded strings.
This behavior is by design.
Character strings can still exist in the database without being HTML-encoded. To do this, customize the placeholder that you use in the Content Management Server 2002 project. The following is the sample code.
namespace CmsPlaceholderLibrary
{
[SupportedPlaceholderDefinitionType(typeof(HtmlPlaceholderDefinition))]
/// <summary>
/// Description of JpnPlaceholderControl summary
/// </summary>
public class JpnPlaceholderControl : HtmlPlaceholderControl
{
public JpnPlaceholderControl()
{
//
// TODO:add constractor logic here //
}
protected override void OnPopulatingDefaultContent(PlaceholderControlCancelEventArgs e)
{
// TODO:add JpnPlaceholderControl.OnPopulatingDefaultContent
// base.OnPopulatingDefaultContent (e);
base.Html = "type text here";
}
protected override void SavePlaceholderContent(PlaceholderControlSaveEventArgs e)
{
// TODO:add JpnPlaceholderControl.SavePlaceholderContent
// base.SavePlaceholderContent (e);
EnsureChildControls();
((HtmlPlaceholder)this.BoundPlaceholder).Html = HttpUtility.HtmlDecode( base.Html );
}
}
}
APPLIES TO
- Microsoft Content Management Server 2002 Service Pack 2
| kbharmony kbexpertiseadvanced kbexpertiseinter kbbug kbtshoot KB938958 |
Community Feedback System
Very often, it takes hours to solve a problem. Very often, you've looked high
and low, and have tried a lot of solutions. When you finally found it, chances
are, it was because someone else helped you. Here's your chance to give back.
Use our community feedback tool to let others know what worked for you and what
didn't.
Please also understand that the community feedback system is not warranted to be
correct, it's simply a system that we've built to let people try and help each
other. If something in a feedback response doesn't make sense to you, or you're
not comfortable making changes that the feedback talks about (like registry
edits), please consult a professional.
Thank you for using kbAlertz.com Feedback System.
-- Scott Cate