Details
Description
teachers complaint to me that the HTML layouts (rich formatting) they apply to the intro box of forums does not
show up after they apply it and show it to the students.
especially problematic when some of the text is justified to the right (Hebrew rtl) and some instructions are
(supposed to be) justified to the left (English ltr)
so i found out that the intro field is filtered by the format_text() function.
i removed it since i see no point (security wise) to have this specific piece of content filtered since the teachers
are responsible for the content and most of the time they try to embed multimedia and rich HTML code for the
benefit of the students.
so i change mod/forum/view.php (line 260) from
print_box(format_text($forum->intro), 'generalbox', 'intro');
to...
print_box($forum->intro, 'generalbox', 'intro');
i hope it is ok ![]()
Attachments
Issue Links
| This issue will be resolved by: | ||||
| MDL-16072 | File storage conversion Forum |
|
|
|
I think format_text() function is a pretty important one as it converts the input text to
html format while including proper line breaks and paragraph tags appropriately. What I suggest
is to remove the clean up of tags since the teachers are responsible for the proper content.
So I suggest to include
$options->noclean = true;
just before the
print_box(format_text($forum->intro), 'generalbox', 'intro');
function.
Thanks!
Oshadi