I am trying to create a pdf document using php.
But, I can't get new line in the pdf.
nl2br
is not working so I have used
$newadd = nl2br(str_replace('\r', ' ', $inputSafe['address']));
Now I got the correct output in html as
Naduvilachirayil House, Anaprampal North P.O, Thalavady
But in pdf, I am getting only
Naduvilachirayil House,<br>Anaprampal North P.O,<br>Thalavady.
` means nothing to PDF and will be treated as plaintext. – Marc B Nov 21 '11 at 14:55