本文整理了Java中org.dspace.core.Utils.addEntities()
方法的一些代码示例,展示了Utils.addEntities()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Utils.addEntities()
方法的具体详情如下:
包路径:org.dspace.core.Utils
类名称:Utils
方法名:addEntities
[英]Replace characters that could be interpreted as HTML codes with symbolic references (entities). This function should be called before displaying any metadata fields that could contain the characters "", "&", "'", and double quotation marks. This will effectively disable HTML links in metadata.
[中]用符号引用(实体)替换可能被解释为HTML代码的字符。在显示任何可能包含字符“,”&“,“'”和双引号的元数据字段之前,应调用此函数。这将有效地禁用元数据中的HTML链接。
代码示例来源:origin: DSpace/DSpace
+ "qualifier=\"" + qualifier + "\""
+ language + ">"
+ Utils.addEntities(dcv.getValue()) + "</dcvalue>\n")
.getBytes("UTF-8");
utf8 = (" <dcvalue element=\"date\" "
+ "qualifier=\"issued\">"
+ Utils.addEntities(dateIssued) + "</dcvalue>\n")
.getBytes("UTF-8");
out.write(utf8, 0, utf8.length);
代码示例来源:origin: org.dspace/dspace-oai-api
spec.append(Utils.addEntities(collName));
spec.append("</setName>");
spec.append(Utils.addEntities(commName));
spec.append("</setName>");
代码示例来源:origin: org.dspace/dspace-jspui-api
+ Utils.addEntities(values[j].value) + "</a>");
+ Utils.addEntities(value) + "</a>");
out.print("<a href=\"" + url
+ value + "\">"
+ Utils.addEntities(values[j].value)
+ "</a>");
+ URLEncoder.encode(value, "UTF-8") + "\">" + Utils.addEntities(values[j].value)
+ "</a>");
out.print(Utils.addEntities(values[j].value));
代码示例来源:origin: org.dspace/dspace-jspui-api
metadata = Utils.addEntities(metadataArray[0].value);
+ Utils.addEntities(metadataArray[0].value)
+ "</a>";
sb.append(Utils.addEntities(metadataArray[j].value));
sb.append(endLink);
if (j < (loopLimit - 1))
代码示例来源:origin: org.dspace/dspace-jspui-api
metadata = Utils.addEntities(metadataArray[0].value);
+ Utils.addEntities(metadataArray[0].value)
+ "</a>";
sb.append(Utils.addEntities(metadataArray[j].value));
sb.append(endLink);
if (j < (loopLimit - 1))
代码示例来源:origin: org.dspace/dspace-oai-api
String value = Utils.addEntities(allDC[i].value);
代码示例来源:origin: org.dspace/dspace-jspui-api
out.print(Utils.addEntities(values[i].value));
out.print("</td><td headers=\"s3\" class=\"metadataFieldValue\">");
内容来源于网络,如有侵权,请联系作者删除!