I am encountering a puzzling issue with the code below:
After saving text input from a textarea to a SQL database without any leading or trailing white spaces present, I notice that when displaying the text within a div using angular {{ model.text }}, strange leading and trailing white spaces mysteriously appear:
<pre class="ng-binding"> Line1
Line2
Line3
Line4
</pre>
Upon inspection, you can see that there are indeed leading and trailing spaces within the pre tag. It's important to note that this phenomenon occurs even if the text is within a div and is not limited to the pre tags.
I am completely perplexed by this behavior.
I have already attempted to use a filter to eliminate any leading and trailing spaces, as well as removing all CSS within the parent containers, but to no avail.