Uploaded image for project: 'Maven Site Plugin'
  1. Maven Site Plugin
  2. MSITE-257

Double quote character rendered as entity, which breaks JavaScript

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 2.0-beta-5
    • 2.1
    • None
    • None
    • Maven 2.0.7, Maven Site Plugin 2.0-beta-5

    Description

      When a simple script is included in xdoc source, the double characters get rendered as the html entity " and the script does not execute.

      For example, this in xdoc
      alert("Hello!");

      produces this in the rendered html:
      alert("Hello!");

      Sample project attached. Execute 'mvn site:run', visit http://localhost:8080/index.html, and view the source of the page.

      (Brian Fox discovered this while adding the Google search box to the Maven site.)

      Attachments

        1. mysite.zip
          1 kB
          Wendy Smoak

        Issue Links

          Activity

            People

              ltheussl Lukas Theussl
              wsmoak Wendy Smoak
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: