I have an endpoint that receives a String from the client as seen below:
@GET @Path(\"/{x}\") public Response doSomething(@PathParam(\"x\") String x) { Stri
HtmlUtils from spring-web got the job done with:
spring-web
HtmlUtils.htmlEscape(x)
Maven dependency:
org.springframework spring-web 5.1.7.RELEASE