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

Add StringEscapeUtils.escapeText() methods

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 3.0
    • lang.*
    • None

    Description

      I needed to escape text to be print out to a file; mainly so that all non-ASCII characters (< 32 and >=127) are printed out as escapes (if available) or unicode escapes. This is a one-way conversion, there is no way to find out whether a String contained "
      n" or a newline before conversion, so I just set up escapeText() methods, no unescapeText().

      Please apply to the next release of commons-lang.

      Attachments

        1. LANG-498.patch
          10 kB
          Henning Schmiedehausen

        Issue Links

          Activity

            People

              Unassigned Unassigned
              henning Henning Schmiedehausen
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: