As a general rule, it is best not to modify the source data before saving it. It will bind your data to the specific context in which you use it. What if you ever need another way to display it, for example. in pdf or in format? Then you will have the html objects in your text and will have to return them.
IMHO In this regard, performance considerations are secondary, but caching techniques can be used for this.
So, on the bottom line, I suggest you always prepare the lines before displaying.
joerx source share