proper <br /> tags
This commit is contained in:
@@ -77,7 +77,7 @@ public class SearchServlet extends HttpServlet {
|
||||
sb.append("<Downloading>").append(downloadManager.isDownloading(result.getInfohash())).append("</Downloading>");
|
||||
if (result.getComment() != null) {
|
||||
sb.append("<Comment>")
|
||||
.append(Util.escapeHTMLinXML(result.getComment()).replace("\r\n", "<br>").replace("\n", "<br>"))
|
||||
.append(Util.escapeHTMLinXML(result.getComment()).replace("\r\n", "<br />").replace("\n", "<br />"))
|
||||
.append("</Comment>");
|
||||
}
|
||||
sb.append("</Result>");
|
||||
@@ -112,7 +112,7 @@ public class SearchServlet extends HttpServlet {
|
||||
sb.append("<Sender>").append(Util.escapeHTMLinXML(result.getSender().getHumanReadableName())).append("</Sender>");
|
||||
if (result.getComment() != null) {
|
||||
sb.append("<Comment>")
|
||||
.append(Util.escapeHTMLinXML(result.getComment()).replace("\r\n", "<br>").replace("\n", "<br>"))
|
||||
.append(Util.escapeHTMLinXML(result.getComment()).replace("\r\n", "<br />").replace("\n", "<br />"))
|
||||
.append("</Comment>");
|
||||
}
|
||||
sb.append("</Result>");
|
||||
|
||||
Reference in New Issue
Block a user