diff --git a/mod/resource/locallib.php b/mod/resource/locallib.php
index <HASH>..<HASH> 100644
--- a/mod/resource/locallib.php
+++ b/mod/resource/locallib.php
@@ -404,7 +404,7 @@ function resource_get_intro(object $resource, object $cm, bool $ignoresettings =
 
     $content = "";
     if ($ignoresettings || !empty($options['printintro']) || $extraintro) {
-        $gotintro = trim(strip_tags($resource->intro));
+        $gotintro = !html_is_blank($resource->intro);
         if ($gotintro || $extraintro) {
             if ($gotintro) {
                 $content = format_module_intro('resource', $resource, $cm->id);
MDL-<I> mod_resource: better detection of empty module intro.