During development, this users tested the script and it was fine. But now, seems like the content is being sanitized before being shown to the users, with all scripts and style tags missing and many parts of the content missing tags. This behavior is happening specially on users created on more recent moodle versions, my personal student user created on 2012 do not suffer with this...
There should be a script and style tag on this blank space. But it was sanitized before echoed out.
Looking at the docs, I tested this two configs, $CFG->formatstringstriptags and $CFG->forceclean . And still the content was being sanitized for the student role.For now... I edited the lib/weblib.php and I am forcing to return false on the function is_purify_html_necessary() in case the course has a specific ID. And the logic on the function format_text() is kinda confusing.
So, is there a user config to prevent the text from being sanitized before printing the the browser? I seems that the behavior change by user, so a user config?