Commit 98099de3 authored by Nigel McNie's avatar Nigel McNie

Make sure the introduction HTML is inserted as HTML into the search results. Fixes #1808

parent 35c0b01b
......@@ -85,7 +85,14 @@ results.rowfunction = function(r,n,d) {
var row = TR({'class':'r'+(n%2)},TD(null,A({'href':'user/view.php?id=' + r.id},r.name)));
for (var i = 0; i < userfields.length; i++) {
if (r[userfields[i]]) {
appendChildNodes(row, TD(null, r[userfields[i]]));
if (userfields[i] == 'introduction') {
var td = TD();
td.innerHTML = r[userfields[i]];
appendChildNodes(row, td);
}
else {
appendChildNodes(row, TD(null, r[userfields[i]]));
}
}
else {
appendChildNodes(row, TD(null));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment