I'm currently exploring ways to wrap each line of content in a span. For example, suppose I have an element structured like this:
.body-copy {
position: relative;
width: 100%;
height: auto
}
<div class="body-copy">
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor
in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est labour.
</div>
In order for the text to span the width of its container, I am seeking a way to enclose each line of content in a span
upon document load, window load, and window resize. I wonder if this is even feasible? Your valuable suggestions on this matter would be highly appreciated!