diff --git a/src/core/components/mod-icon/mod-icon.ts b/src/core/components/mod-icon/mod-icon.ts index a51788f87..d35294ff7 100644 --- a/src/core/components/mod-icon/mod-icon.ts +++ b/src/core/components/mod-icon/mod-icon.ts @@ -17,6 +17,7 @@ import { Component, ElementRef, Input, OnChanges, OnInit, SimpleChange } from '@ import { CoreCourse } from '@features/course/services/course'; import { CoreCourseModuleDelegate } from '@features/course/services/module-delegate'; import { CoreSites } from '@services/sites'; +import { CoreTextUtils } from '@services/utils/text'; import { CoreUrlUtils } from '@services/utils/url'; const assetsPath = 'assets/img/'; @@ -141,6 +142,8 @@ export class CoreModIconComponent implements OnInit, OnChanges { return false; } + this.icon = CoreTextUtils.decodeHTMLEntities(this.icon); + // If it's an Moodle Theme icon, check if filtericon is set and use it. if (this.icon && CoreUrlUtils.isThemeImageUrl(this.icon)) { const iconParams = CoreUrlUtils.extractUrlParams(this.icon);