PUBLIC - Liferay Portal Community Edition
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-42118

Double Spaces are Removed within HMTL Attribute Values due to Liferay's Strip Filter

    Details

    • Type: Bug Bug
    • Status: Closed
    • Resolution: Duplicate
    • Affects Version/s: 6.1.20 EE GA2, 6.1.X EE, 6.2.X EE
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      LIFERAY VERSION: 6.1 GA2
      OPERATING SYSTEM: N/A
      APPLICATION SERVER: Tomcat 7.0
      JAVA VIRTUAL MACHINE: N/A
      DATABASE: Oracle 11.1
    • Fix Priority:
      2
    • Similar Issues:
      Show 5 results 

      Description

      Issue: The Strip Filter in Liferay is removing double spaces within the HTML attribute value and is instead replacing them with a single space. In some instances, the double spaces is necessary because it is part of a HTML DOM Attribute ID, used dynamically.

      Steps to Reproduce
      1. Place a Web Content Display Portlet on a page
      2. Add a Web Content article
      3. In the CKEditor, switch to source mode and enter the following text:

      <div id="Index Tenor">Testing</div>

      4. Publish the article.
      5. On the page with the Web Content article, navigate to the Page Source and note that <div id="Index Tenor"> is <div id="Index Tenor">.

      Once I disable the Strip Filter with the following property:

      com.liferay.portal.servlet.filters.strip.StripFilter=false

      The double space is not removed and it keeps the following form:

      <div id="Index Tenor">

        Activity

        There are no comments yet on this issue.

          People

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

            Dates

            • Created:
              Updated:
              Resolved:
              Days since last comment:
              1 year, 24 weeks, 3 days ago

              Development

                Structure Helper Panel