In the last few days I've been experiencing a weird behavior on some courses. The HTML on the text description of topics and activities displays with a bunch of symbols that shouldn't be there, like in the example below:
That is how the text description is showing to users in the course page.
Below is the HTML editing of the same text:
Also, when querying the text direct from the DB, the "summary" on the mdl_course_sections table looks fine, it contains the exact same HTML showing on the second screenshot.
Moodle version is 3.4.7+ (Build: 20190201) Version 2017111307.01
It's also important to say that I've seen no pattern on the behavior since it only occurs on some random courses, like after editing some old courses and after creating new ones, but not all recently edited courses got this error.
Any help is greatly appreciated.