fixed wrong strip_slashes() when printing blog entry
This commit is contained in:
+2
-3
@@ -147,11 +147,10 @@
|
||||
|
||||
global $USER, $CFG, $COURSE, $ME;
|
||||
|
||||
$template['body'] = format_text(stripslashes_safe($blogEntry->summary), $blogEntry->format);
|
||||
$template['body'] = format_text($blogEntry->summary, $blogEntry->format);
|
||||
$template['title'] = '<a name="'. $blogEntry->subject .'"></a>';
|
||||
//enclose the title in nolink tags so that moodle formatting doesn't autolink the text
|
||||
$template['title'] .= '<span class="nolink">'. stripslashes_safe($blogEntry->subject);
|
||||
$template['title'] .= '</span>';
|
||||
$template['title'] .= '<span class="nolink">'.$blogEntry->subject.'</span>';
|
||||
$template['userid'] = $blogEntry->userid;
|
||||
$template['author'] = fullname(get_record('user','id',$blogEntry->userid));
|
||||
$template['lastmod'] = userdate($blogEntry->lastmodified);
|
||||
|
||||
Reference in New Issue
Block a user