mirror of https://github.com/zlatinb/muwire
proper <br /> tags
parent
c7f57c0b15
commit
905f559aa9
|
@ -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>");
|
||||
|
|
Loading…
Reference in New Issue