提交 48869a86 编写于 作者: J Juergen Hoeller

consistent converting and escaping of label values (following...

consistent converting and escaping of label values (following AbstractMultiCheckedElementTag's SPR-7174)
上级 a032ce12
/* /*
* Copyright 2002-2008 the original author or authors. * Copyright 2002-2010 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
...@@ -90,7 +90,7 @@ public abstract class AbstractSingleCheckedElementTag extends AbstractCheckedEle ...@@ -90,7 +90,7 @@ public abstract class AbstractSingleCheckedElementTag extends AbstractCheckedEle
if (resolvedLabel != null) { if (resolvedLabel != null) {
tagWriter.startTag("label"); tagWriter.startTag("label");
tagWriter.writeAttribute("for", id); tagWriter.writeAttribute("for", id);
tagWriter.appendValue(resolvedLabel.toString()); tagWriter.appendValue(convertToDisplayString(resolvedLabel));
tagWriter.endTag(); tagWriter.endTag();
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册