How to enter a newline in php esc_html_e(' '); script
nl2br() does not work in the below line.
How to enter a newline in php esc_html_e(' '); script
nl2br() does not work in the below line.
esc_html_e() is a custom function. nl2br won’t work, that’s not what its ment to do. it takes line breaks and converts them to the html equivalent. try
<h1><?php esc_html_e("Two Event Sponsorships per Month are Available!\nThe two Sponsorships [1 per each Sponsor] are registered and payed for. The month selected will be removed.' , 'StyleShop' ); ?></h1>;