Uploaded image for project: 'Commons Lang'
  1. Commons Lang
  2. LANG-150

[lang] StringEscapeUtils.unescapeHtml skips first entity after standalone ampersand

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.1
    • 2.2
    • None
    • None
    • Operating System: All
      Platform: PC

    • 38569

    Description

      StringEscapeUtils.unescapeHtml skips the first entity after a standalone ampersand.

      Code:
      System.out.println(
      StringEscapeUtils.unescapeHtml("test & ä ö")
      );

      Output:
      test & ä ö

      Expected output:
      test & ä ö

      Attachments

        Activity

          People

            Unassigned Unassigned
            duy.dao@azonline.ch Duy Dao
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: