-
Type:
Story
-
Status: Closed
-
Priority:
Minor
-
Resolution: Inactive
-
Affects Version/s: 6.0.6 GA, 6.0.11 EE, 6.0.12 EE, 6.1.0 CE RC1, 6.2.0 CE M4
-
Fix Version/s: None
-
Component/s: Legacy Components, Legacy Components > API
-
Labels:
In com.liferay.portal.kernel.util.HtmlUtil there is a method that has the following signature :
public static String escape(String html, int mode) {
return getHtml().escape(html, mode);
}
type mode argument should be one of
HtmlImpl.ESCAPE_MODE_ATTRIBUTE
HtmlImpl.ESCAPE_MODE_CSS
HtmlImpl.ESCAPE_MODE_JS
HtmlImpl.ESCAPE_MODE_TEXT
HtmlImpl.ESCAPE_MODE_URL
The problem is that because the constants are defined in an impl class they are not accessible to plugins
I would suggest moving them to the
com.liferay.portal.kernel.util.Html interface.