Uploaded image for project: 'PUBLIC - Liferay Portal Web Content Experience'
  1. PUBLIC - Liferay Portal Web Content Experience
  2. WCM-1509

Full html should be escaped through escape() method and not escapeAttribute() method

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: 2.x
    • Fix Version/s: 2.x
    • Component/s: Content Targeting
    • Labels:
      None

      Description

      Logic of HtmlUtil.escapeAttribute(String text) method is escaping html code in 'attribute' mode.  However, all calls to this method are taking as a parameter full html code, which is wrong since they are not simple attributes:

       

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Packages

                Version Package
                2.x