Merge branch 'MDL-85505-main' of https://github.com/catalyst/moodle
This commit is contained in:
@@ -912,7 +912,7 @@ function get_host_from_url($url) {
|
||||
* images, objects, etc.
|
||||
*/
|
||||
function html_is_blank($string) {
|
||||
return trim(strip_tags((string)$string, '<img><object><applet><input><select><textarea><hr>')) == '';
|
||||
return trim(strip_tags((string)$string, '<img><object><applet><input><select><textarea><hr><iframe>')) == '';
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -5481,6 +5481,7 @@ EOT;
|
||||
$this->assertEquals(true, html_is_blank('<p> </p>'));
|
||||
$this->assertEquals(false, html_is_blank('<p>.</p>'));
|
||||
$this->assertEquals(false, html_is_blank('<img src="#">'));
|
||||
$this->assertEquals(false, html_is_blank('<iframe></iframe>'));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user