using nl2br() in Laravel 5.x

To use nl2br() function to return the new lines or html markup a data stored within your database within blade template, you should use the following format: {!! nl2br(e($content)) !!}  

Published
Categorized as Technology

Delay in JavaScript Loop

setTimeout is not the answer when it comes to delay in loops in Javascript. Using setTimeout will cause the first cycle to have the delay and then it will run to the end of the loop from the second time. for (var i = 1; i < 100; i++) setTimeout(function () { console.log(‘hello’); }, 2000… Continue reading Delay in JavaScript Loop

Published
Categorized as Technology