I am getting my strings out of a constants file, which will be translated into multiple languages. If I have the following string of two sentences:
Here is the first sentence in my example. Here is the second sentence in my example.
And I want to have the following displayed on my page:
Here is the first sentence in my example.
Here is the second sentence in my example.
I am using Angular 2 and the constants file I'm using displays any HTML in the string. I realize that I could simply create two separate strings to accomplish this but I wonder if there is a way to do it using CSS and HTML. I would prefer to avoid sanitizing the strings.
Is there any way to accomplish this with CSS and/or HTML?
`, because a newline is just whitespace (like a space or tab) as far as HTML is concerned. – Stephen P Mar 08 '17 at 01:51