I have backend that is returning me whole article body text as String. On my website I want to create each article in different HTML/CSS style, for example have <br>
tag to break article when it is too long. But some articles will not be long, so I can't place <br>
tag inside my frontend component.
As my frontend component is not changing based on size of this text, I came up with an idea to store <br>
tags directly inside article String texts. But data is coming as a string with <br>
tags in it, the tags are treated also as a string, so it has no effect on styling.
Should I somehow escape these tags from string? Or is there a better way to do it? I don't have idea how it should be done properly.