html5 - HTML line breaks not rendering properly in the page -
html5 - HTML line breaks not rendering properly in the page -
i using html5 jsp. have table cell within display text. new line added line break tag not work , displays line break tag along text.
i display within jsp follows.
<!doctype html> <%@ page language="java" contenttype="text/html; charset=iso-8859-1" pageencoding="iso-8859-1"%> <table> <tr> <td> <c:out value="${visitinfo.referraltext}" /> </td> </tr> </table>
visitinfo.referraltext contains text.
try escapexml
attribute of c:out
.
<c:out value="${visitinfo.referraltext}" escapexml="false"/>
html5 jsp
Comments
Post a Comment