Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-5013

HTML code visible when inserting velocity macro displaying a property

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 2.2.3, 2.3 M1
    • 2.2.2
    • WYSIWYG Editor
    • None
    • Integration
    • Easy

    Description

      Follow this steps to reproduce:

      • Edit a new page with the class editor
      • Add a TextArea property and save (I named my property "testproperty")
      • Edit the same page with the object editor
      • Add an object of the class we have just defined
      • Set the TextArea property to a non empty string (I used "foobar")
      • Edit the same page in WYSIWYG mode
      • Insert a velocity macro that displays the property of the object we just added:
        $doc.display("testproperty")
        

      The displayed text is:

      <p>foobar</p>
      

      As you can see the HTML code is visible.

      Attachments

        Activity

          People

            mflorea Marius Dumitru Florea
            mflorea Marius Dumitru Florea
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: