From 61f42a792872c7fc83c7d4d64e1f0bb9d063c810 Mon Sep 17 00:00:00 2001 From: reger Date: Fri, 13 Feb 2015 00:20:33 +0100 Subject: [PATCH] fix formatting issue in search result display if description contains html code noticed e.g. for id=NmNdJ9uApLaQ http://hswong3i.net/blog/hswong3i/virtualmin-drupal-7-x-ubuntu-12-04-howto --- htroot/yacysearchitem.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htroot/yacysearchitem.java b/htroot/yacysearchitem.java index 9fd353c61..8e8e440a1 100644 --- a/htroot/yacysearchitem.java +++ b/htroot/yacysearchitem.java @@ -258,7 +258,7 @@ public class yacysearchitem { prop.putHTML("content_former", origQ); final TextSnippet snippet = result.textSnippet(); final String desc = (snippet == null) ? "" : snippet.descriptionline(theSearch.query.getQueryGoal()); - prop.put("content_description", desc); + prop.putHTML("content_description", desc); prop.putXML("content_description-xml", desc); prop.putJSON("content_description-json", desc); prop.put("content_mimetype",result.getNode().mime()); // for atom type attribute