Uploaded image for project: 'OFBiz'
  1. OFBiz
  2. OFBIZ-4316

Widget $() escapes HTML. StringUtil.wrapString(contentText) throw an error

    XMLWordPrintableJSON

Details

    Description

      from the ForumScreens.xml#ViewForumMessage

                              <container style="forumtext">
         <label>${contentText}</label>
      

      show escaped html

      * Data Source<br /> * Marketing Campaign<br /> * Tracking Affiliate programs<br /> * Segment<br /> * Contact List<br /> * Reports<br /> <a class="postlink" href="https://demo-trunk.ofbiz.apache.org/marketing/control/main"USERNAME=flexadmin&PASSWORD=ofbiz&JavaScriptEnabled=Y">Demo Marketing</a> 
      

      replacing

      <label>${contentText}</label>

      with

      ${StringUtil.wrapString(contentText).toString()}

      give this error
      2011-06-15 18:16:43,200 (TP-Processor13) [ UtilXml.java:1043:ERROR]
      XmlFileLoader: File
      file:specialpurpose/ecommerce/widget/ForumScreens.xml
      process error. Line: 151. Error message: cvc-complex-type.2.3: Element
      'condition' cannot have character [children], because the type's content
      type is element-only.

      Attachments

        Activity

          People

            Unassigned Unassigned
            bjfreeman BJ Freeman
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: