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

$ and { is stripped in HTML no matter what theme is used

    Details

      Description

      Hi Everyone,

      Check the following code snippet :

      <div id="cd">
      <h5>Hello ${theTitle} </h5>
      </div>
      <script>
      var ob2 = document.getElementById("cd");
      alert(ob2.innerHTML);
      </script>

      Write the above code in .jsp of any portlet in Liferay 6.0 and prior. You will see that the complete innerHTML is shown in the alert i.e. <h5>Hello ${theTitle}</h5>. Now write the same in Liferay 6.1 GA2. You will notice that the entire thing written in ${......} is stripped including the $ and brace brackets. The alert will print only <h5>Hello</h5>

        Attachments

          Activity

            People

            Assignee:
            sharry.shi Sharry Shi
            Reporter:
            muhammedshakir.m@gmail.com Muhammed Shakir (Inactive)
            Participants of an Issue:
            Recent user:
            Esther Sanz
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              9 years, 5 weeks, 4 days ago

                Packages

                Version Package
                6.1.1 CE GA2