Dear Genner,
This can be fixed by modifying the strip_tags_more function in your moodle directory/mod/chat/lib.php file.
In my lib.php, I replaced the strip_tags_more function with the following:
////////////////////////////////////////
function strip_tags_more($theText) {
//This goes through the string and replaces all of the "<" and ">" with there
//HTML code equivalent, so that they display in the chat window correctly
$theText = str_replace("<", "<", $theText);
$theText = str_replace(">", ">", $theText);
// Add our own popup feature (optional)
if (strstr($theText,"123456789")) {
$theText = " < script>alert(\"Please pay attention to this\");< /script>";
}
return $theText;
}
//////////////////////////////////////
Re: How to remove/strip/disable HTML tags in chat message output
by Nicholas Exner -
Number of replies: 0