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

Can't choose a content which contains an apostrophe in its title (in "Web Content Display" portlet)

    Details

      Description

      A Javascript error occurs when choosing a web content with an apostrophe in its title (from the Web Content Display portlet).

      The error is "Unexpected identifier" (in chrome web console) and is due to the HTML entity used for the apostrophe in the content link :
      <a href="javascript:_86_selectArticle('12201','Title with ' Apostrophe');">12201</a>

      Therefore such contents can not be put on pages !!

      Step to reproduce :
      1. Create a web content with an apostrophe
      2. Add a Web Content Display on a page
      3. Click on the 'Select Web Content' icon (cog-wheel icon)
      4. You can see the JS error in the console and can not choose the content with the apostrophe.

        Attachments

          Activity

            People

            Assignee:
            yunlin.sun Yunlin "Steven" Sun
            Reporter:
            sebprunier Sébastien Prunier (Inactive)
            Participants of an Issue:
            Recent user:
            Marta Elicegui
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              7 years, 38 weeks, 6 days ago

                Packages

                Version Package
                6.1.X EE