diff --git a/lib/tests/html2text_test.php b/lib/tests/html2text_test.php
index 8736402eb6d..4214eca5654 100644
--- a/lib/tests/html2text_test.php
+++ b/lib/tests/html2text_test.php
@@ -180,4 +180,12 @@ What would happen if a non-terminated string were input to this function?
$this->assertSame($strconv, html_to_text($strorig));
}
+
+ /**
+ * Scripts should be stripped.
+ */
+ public function test_strip_scripts() {
+ $this->assertSame('Interesting text',
+ html_to_text('Interesting text', 0));
+ }
}