Registry / utility / commons-text

commons-text

JSON →
library1.15.0javamavenunverified

Apache Commons Text provides utility functions for processing and manipulating text in Java.

<dependency> <groupId>org.apache.commons</groupId> <artifactId>commons-text</artifactId> <version>1.15.0</version> </dependency>
INSTALL
IMPORT
SIG · COMMONS-TEXT
C
commons-text
utilityjavav1.15.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

StringEscapeUtils
org.apache.commons.text.StringEscapeUtils

Escapes HTML characters using StringEscapeUtils.

import org.apache.commons.text.StringEscapeUtils; public class Main { public static void main(String[] args) { String escaped = StringEscapeUtils.escapeHtml4("<hello>"); System.out.println(escaped); } }
Debug
Known issues
breakingCommons Text versions before 1.10.0 are vulnerable to CVE-2022-42889 (Text4Shell).
fix
Upgrade to version 1.10.0 or later.
affects: <1.10.0
Upgrade
Version history
1.15.0latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
9 hits · last 30 days
node
8
Amazon
1
Resources
commons-text — mvn dependency:get commons-text · libregistry