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

HTML comments are not stripped from blog summaries when displayed via the Asset Publisher portlet

Details

    Description

      Currently, it is possible to add HTML comments to blog content. However, this is not taken into account when blog summaries are displayed via the Asset Publisher portlet. Thus, having a long HTML comment in the beginning of a blog's content field could result in a blank or partially missing summary.

      Steps to Reproduce:

      1. Create a public widget page.
      2. Add the portlets "Blogs" and "Asset Publisher" to the newly-created page.
      3. Add and publish a new blog entry using the supplied text (content-with-html-comment.txt) as its content (use Code View).
      4. Navigate back to the public page and check Asset Publisher.

      Actual: HTML comments are not stripped and the summary is not visible.
      Expected: HTML comments are stripped from summary and the summary is visible.

      Reproduced on:

      • 7.1.x (d8e8bdf8af91dab15789633045d6d804ae19f3c3)
      • 7.2.x (3c120b97383b2af54a55366483a8e9969d7e78d5)
      • master (5bcc4b3a0fa44fb6b6d7ec89433bdbe43eb015eb)

      Attachments

        Activity

          People

            yang.cao Yang Cao
            kevin.lee Kevin Lee
            Kiyoshi Lee Kiyoshi Lee
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              2 years, 20 weeks, 5 days ago

              Packages

                Version Package
                7.1.10 DXP FP20
                7.1.10.5 SP5
                7.1.X
                7.2.10 DXP FP9
                7.2.X
                7.3.5 CE GA6
                7.3.10 DXP GA1
                7.3.X
                Master