diff --git a/modules/apps/announcements/announcements-web/src/main/resources/META-INF/resources/announcements/view_entry.jsp b/modules/apps/announcements/announcements-web/src/main/resources/META-INF/resources/announcements/view_entry.jsp
index ee77b04c2dbf86a9fd055df07c3b35f07c98a3dc..56eb7c86f73f0ca743ceef7e8d9dc56d1c4ae743 100644
--- a/modules/apps/announcements/announcements-web/src/main/resources/META-INF/resources/announcements/view_entry.jsp
+++ b/modules/apps/announcements/announcements-web/src/main/resources/META-INF/resources/announcements/view_entry.jsp
@@ -64,7 +64,7 @@ if (portletTitleBasedNavigation) {
 				<div class="card-col-content card-col-gutters">
 
 					<%
-					String userDisplayText = PortalUtil.getUserName(entry) + StringPool.COMMA_AND_SPACE + Time.getRelativeTimeDescription(entry.getDisplayDate(), locale, timeZone, announcementsDisplayContext.getDateFormatDate());
+					String userDisplayText = HtmlUtil.escape(PortalUtil.getUserName(entry) + StringPool.COMMA_AND_SPACE + Time.getRelativeTimeDescription(entry.getDisplayDate(), locale, timeZone, announcementsDisplayContext.getDateFormatDate()));
 					%>
 
 					<h5 class="text-default" title="<%= userDisplayText %>">