From eeac28e2935d3ec8134f628af71edfef99b14dec Mon Sep 17 00:00:00 2001 From: christian Date: Mon, 6 Nov 2023 12:14:00 -0500 Subject: [PATCH] Course: fix display images in intro - refs BT#21046 --- src/CoreBundle/Controller/CourseController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CoreBundle/Controller/CourseController.php b/src/CoreBundle/Controller/CourseController.php index 3de974f678..c655584ac5 100644 --- a/src/CoreBundle/Controller/CourseController.php +++ b/src/CoreBundle/Controller/CourseController.php @@ -643,7 +643,7 @@ class CourseController extends ToolBaseController /** @var CToolIntro $ctoolintro */ $ctoolintro = $ctoolintroRepo->findOneBy(['courseTool' => $ctool]); if ($ctoolintro) { - $introText = preg_replace('/<[^>]*>(\s| )*<\/[^>]*>/', '', $ctoolintro->getIntroText()); + $introText = $ctoolintro->getIntroText(); $responseData = [ 'iid' => $ctoolintro->getIid(), 'introText' => $introText,