I need help displaying parts of a text on a new line.
Full Code:
$(function() {
let dictionary = {
"english": {
"_aboutus": "At 3o, we offer a variety of web services such as graphic design, web development, hosting, SEO and much more, that will ensure that your online presence will be noticed.\n\nYour goals are important to us and therefor we work hard to ensure these are reached by delivering\n you our services with the highest quality and excellence possible. Once a client with us, is always a client.\n We are always here to continue to assist you in the future with our excellent support.",
"_aboutustitle": "ABOUT US",
"_navaboutus": "ABOUT US",
"_navservices": "OUR SERVICES",
"_navgetintouch": "GET IN TOUCH",
"_barservices": "OUR SERVICES",
"_bargetintouch": "GET IN TOUCH",
"_footeraboutustitle": "ABOUT US",
"_footeraboutus": "At 3o, we offer a variety of web services such as graphic design, web development, hosting, SEO and much more, that will ensure that your online presence will be noticed.",
"_footergetintouchtitle": "SOCIAL LINKS",
"_footerquicklinkstitle": "QUICK LINKS",
"_footernaarboven": "Get Back To The Top",
"_footeraboutustxt": "About Us",
"_footergetintouchtxt": "Get In Touch",
"_footerservicestxt": "Our Services",
"_contactbutton": "Send"
}
};
$('.display').text(dictionary.english._aboutus);
});
<section class='display'></section>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
Specific code with text that needs new lines.
"_aboutus": "At 3o, we offer a variety of web services such as graphic design, web development, hosting, SEO and much more, that will ensure that your online presence will be noticed.\n\nYour goals are important to us and therefor we work hard to ensure these are reached by delivering\n you our services with the highest quality and excellence possible. Once a client with us, is always a client.\n We are always here to continue to assist you in the future with our excellent support.",
As you can see above I have tried using \n but it doesn't work. If anyone could help me and explain how I can start new lines in the text above I'd greatly appreciate it.
` tags. – Terry Mar 09 '19 at 10:16