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

HTML is stripped from Web Content after publication

    Details

      Description

      Summary
      While setting up a test case to include font-awesome in Web Contents, we have identified that the tags are removed after saving the asset.

      It's very possible that this is related to the antisamy policy, but we would like to double check to confirm whether this is intended.

      Steps to Reproduce

      1. Navigate to Control Panel -> Content -> Web Content
      2. Create a Web content with Basic Content, with title and summary as Test content
      3. In Content field, change to Code View
      4. Paste the following
            <div>
                <i class="fa fa-map-marker"></i>
                <p><span>21 Liverpool Street</span> London, UK</p>
            </div>
      5. Publish
      6. Edit the created web content and see source

      Actual Result
      i element is stripped, and we are unable to use font-awesome.

      Expected Behavior
      i element is retained, and we are able to use font-awesome in Web Content.

      Reproduced In
      7.1.x Private Commit: 40d9e186b7f81ae2c027e7e89fdb1ad890d6eb9f

        Attachments

          Activity

            People

            Assignee:
            raven.song Raven Song
            Reporter:
            brian.suh Brian Suh
            Participants of an Issue:
            Recent user:
            Csaba Turcsan
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              2 years, 20 weeks ago

                Packages

                Version Package
                7.1.10 DXP FP3
                7.1.1 CE GA2
                7.1.10.1 SP1
                7.1.X
                Master