diff --git a/phpBB/styles/prosilver/template/forum_fn.js b/phpBB/styles/prosilver/template/forum_fn.js index 009a9de621..ed273c8da3 100644 --- a/phpBB/styles/prosilver/template/forum_fn.js +++ b/phpBB/styles/prosilver/template/forum_fn.js @@ -650,7 +650,7 @@ function parseDocument($container) { html = $children.html(); } - $block.append((first ? '' : '
') + html); + $block.append((first ? '' : '
') + html); first = false; }); @@ -670,7 +670,7 @@ function parseDocument($container) { // Find all headers, get contents $list.prev('.topiclist').find('li.header dd').not('.mark').each(function() { - headers.push($(this).text()); + headers.push($("
").text($(this).text()).html()); headersLength++; }); @@ -707,7 +707,7 @@ function parseDocument($container) { html = headers[i] + ': ' + html + ''; } - $block.append((first ? '' : '
') + html); + $block.append((first ? '' : '
') + html); first = false; }); @@ -773,7 +773,8 @@ function parseDocument($container) { } if ((text.length && text !== '-') || cell.children().length) { - cell.prepend('' + headers[column] + ''); + const $dfnElement = $("").css('display', 'none').text(headers[column]); + cell.prepend($dfnElement); } else { cell.addClass('empty'); }