Here is a solution I found. It doesn’t seem very elegant, though:
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<% pageContext.setAttribute("newLineChar", "\n"); %>
${fn:replace(item.comments, newLineChar, "; ")}
More Related Contents:
- How do I break a string in YAML over multiple lines?
- Replace empty strings with null values
- What is the difference between a “line feed” and a “carriage return”?
- Replace String in all files in Eclipse [closed]
- Replace substring of NSAttributedString with another NSAttributedString
- Regular expression to remove special characters in JSTL tags
- How to install JSTL? The absolute uri: http://java.sun.com/jstl/core cannot be resolved
- Replace part of a string with another string
- What’s the difference of strings within single or double quotes in groovy?
- Difference between text and varchar (character varying)
- Find string between two substrings [duplicate]
- How to replace all occurrences of a string in JavaScript
- python replace single backslash with double backslash
- Case insensitive comparison of strings in shell script
- How to do if-else in Thymeleaf?
- Why is capitalizing the first letter of a string so convoluted in Rust?
- How to retrieve two columns data in A,B format in Oracle
- How can I remove repeated characters in a string with R?
- Best data structure for implementing a dictionary?
- Replacing escape characters from JSON
- How do I make format! return a &str from a conditional expression?
- Check whether a string contains a substring
- UPDATE and REPLACE part of a string
- What is the equivalent of the join operator over a vector of Strings?
- Removing carriage return and linefeed from the end of a string in C#
- How can I use grep to find a word inside a folder?
- Passing parameters to another JSP file using tag
- String.replaceAll is considerably slower than doing the job yourself
- What is the difference between VBScript’s + and & operator?
- Remove all occurrences of \ from string