How to put line break in mpdf when data is extracted from mysql database
问题 I am using MPDF to generate pdf files from data stored in mysql database. Though I could extract and display others data as expected, I could not display multiline text as they all comes in single line. Could someone help me to resolve this problem. EG. My data from textarea is shown in database as: One Two Three But in pdf it will ge generated as OneTwoThree When I check in database using phpmyadmin its stored data as One\r\nTwo\r\nThree Please help. 回答1: Try with this code. $finalString =