diff --git a/contrib/static/search.js b/contrib/static/search.js index ea3d8ac..d7190ea 100644 --- a/contrib/static/search.js +++ b/contrib/static/search.js @@ -14,7 +14,11 @@ function inject_search(elem) { function inject_search_result(r) { var e = document.createElement("div"); - e.innerHTML = r.PostMarkup; + var a = document.createElement("a"); + a.href = r.URL; + e.appendChild(a); + var txt = document.createTextNode(r.Message_id); + a.appendChild(txt); output.appendChild(document.createElement("hr")); output.appendChild(e); }