Commit 002ecd87 authored by Clare Lenihan's avatar Clare Lenihan Committed by Clare Lenihan
Browse files

remove use of htmlentities which screws up for some characters(like ß)

parent 2bf6a0d8
......@@ -280,7 +280,7 @@ function setup_topics(&$topics) {
$more = true;
}
$topic->body = strip_tags($topic->body);
$topic->body = html_entity_decode($topic->body);
$topic->body = html_entity_decode($topic->body); // no things like   only take up one character
// take the first 50 chars, then up to the first space (max length 60 chars)
if (strlen($topic->body) > 60) {
$topic->body = substr($topic->body, 0, 60);
......@@ -293,7 +293,7 @@ function setup_topics(&$topics) {
if ($more) {
$topic->body .= '...';
}
$topic->body = htmlentities($topic->body);
$topic->body = htmlspecialchars($topic->body);
$topic->lastposttime = relative_date(get_string('strftimerecentrelative', 'interaction.forum'), get_string('strftimerecent'), $topic->lastposttime);
}
}
......
Supports Markdown
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