[ https://issues.apache.org/jira/browse/WICKET-5830?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14309486#comment-14309486 ]
Jesse Bonzo commented on WICKET-5830: ------------------------------------- I tested this with Wicket Tested and get this: <html xmlns:wicket="http://wicket.apache.org"> <head> <meta charset="utf-8" /> <title>Apache Wicket Quickstart</title> <link href='http://fonts.googleapis.com/css?family=Yanone+Kaffeesatz:regular,bold' rel='stylesheet' type='text/css' /> <link rel="stylesheet" href="style.css" type="text/css" media="screen" title="Stylesheet"/> </head> <body> <p class="test-class" wicket:id="escapedLabel"><p>This should work</p></p> <p class="test-class" wicket:id="unescapedLabel"><p>This should work</p></p> </body> </html> It appears the HTML is not valid with nested p tags and the browser is trying to handle it. Please close this, sorry for the trouble. > setEscapeModelStrings false results in multiple tags > ---------------------------------------------------- > > Key: WICKET-5830 > URL: https://issues.apache.org/jira/browse/WICKET-5830 > Project: Wicket > Issue Type: Bug > Components: wicket > Affects Versions: 6.12.0, 6.19.0 > Environment: Windows 7 x64 > Reporter: Jesse Bonzo > Priority: Trivial > Labels: escaping, label > Attachments: WicketQuickStart.zip > > > When setting a label's content to be "<p>This should work</p>" and setting > setEscapeModelStrings to false, it renders as: > <p class="test-class" wicket:id="escapedLabel"></p> > <p></p> > <p>This should work</p> > This leads to issues when trying to style based on "test-class". -- This message was sent by Atlassian JIRA (v6.3.4#6332)