Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-20001

HtmlImpl constants should be moved to the interface

    Details

      Description

      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.

        Attachments

          Activity

            People

            Assignee:
            michael.saechang Michael Saechang
            Reporter:
            jelmer Jelmer Kuperus (Inactive)
            Recent user:
            Kiyoshi Lee
            Participants of an Issue:
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Packages

                Version Package