Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

partly fixed snippets

allo8803f813c564
diff --git a/htroot/xml/snippet.java b/htroot/xml/snippet.java
index 19f7116a8..0d13fddf3 100644
--- a/htroot/xml/snippet.java
+++ b/htroot/xml/snippet.java
@@ -63,7 +63,7 @@ public class snippet {
prop.put("status",snippet.getSource());
if (snippet.getSource() < 11) {
//prop.put("text", (snippet.exists()) ? snippet.getLineMarked(queryHashes) : "unknown");
- prop.put("text", (snippet.exists()) ? "<![CDATA["+snippet.getLineMarked(queryHashes)+"]]>" : "unknown");
+ prop.put("text", (snippet.exists()) ? snippet.getLineMarked(queryHashes) : "unknown");
} else {
String error = snippet.getError();
if ((remove) && (error.equals("no matching snippet found"))) {
diff --git a/htroot/xml/snippet.xml b/htroot/xml/snippet.xml
index 5f9194326..3589d50be 100644
--- a/htroot/xml/snippet.xml
+++ b/htroot/xml/snippet.xml
@@ -1,6 +1,6 @@
<?xml version="1.0"?>
<snippet>
- <text>#[text]#</text>
+ <text><![CDATA[#[text]#]]></text>
<status>#[status]#</status>
<urlHash>#[urlHash]#</urlHash>
<links>#[links]#</links>
@@ -12,4 +12,4 @@
<attr>#[attr]#</attr>
</link>
#{/link}#
-</snippet>
\ No newline at end of file
+</snippet>