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

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -