Issue with <br> and Text Plugin in GSAP Posted June 20, 2017 Replace br with some tag and then replace again that with br and then give span some css $demoText.html( $demoText.html().replace('<br>', "^").replace(/./g, "<span>$&</span>").replace(/\s/g, " ").replace('^', "<br>")); jQuery('br').parent('span').addClass('test'); span.test { display: block !important; height: 0; }
Issue with <br> and Text Plugin
in GSAP
Posted
Replace br with some tag and then replace again that with br and then give span some css