HTML isn't 'space sensitive' - so putting < space>< space>< space> will just display as < space>. You could use a < pre> tag if you really want to do that though.
May 24, 2016
7
Level 5
Blade strips spaces inside variable
Hi, in my view I have a
{{ $invoice->a46 }}
my controller
$invoice = Invoice::find($id);
return View('pdf.invoice', compact('invoice'))
instead of showing 05/15 (5 spaces) 20/11/15 (10 spaces) 1.789,00 (5spaces) 47,10 it shows 05/15 20/11/15 1.789,00 47,10 I don't know why it's strips the spaces.
Any suggestions ?
P.S. posting here also removes the spaces.
Please or to participate in this conversation.