Skip to content

Commit

Permalink
LPS-137634 Escape label
Browse files Browse the repository at this point in the history
  • Loading branch information
victorg1991 authored and brianchandotcom committed Aug 19, 2021
1 parent e9a16d4 commit ae71b53
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ taglib uri="http://liferay.com/tld/react" prefix="react" %><%@
taglib uri="http://liferay.com/tld/theme" prefix="liferay-theme" %><%@
taglib uri="http://liferay.com/tld/ui" prefix="liferay-ui" %>

<%@ page import="com.liferay.portal.kernel.util.HtmlUtil" %>

<%@ page import="java.util.List" %><%@
page import="java.util.Map" %>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ List<Map<String, String>> selectedItems = (List<Map<String, String>>)data.get("s

<clay:label
dismissible="<%= true %>"
label='<%= selectedItem.get("label") %>'
label='<%= HtmlUtil.escape(selectedItem.get("label")) %>'
/>

<%
Expand Down

0 comments on commit ae71b53

Please sign in to comment.