RESOLVED - WOW!!!
Thanks Weedpacket, as those references you provided helped me with this conclusion when it didn't pick-n-choose certain html entities to reverse or it picked those I didn't want reversed for this particular code.
In researching and trial-and-error coding for this situation, it dawned on me that the PHP data used within the <pre> tag was contained in a $var before the browser interpreted it. By it originating via an editor similar to that used by this forum, that data as typed had to be passed to the routine before the browser displayed it (an instance of the proverbial brain cramp).
Just before I arrived at that solution in an effort to recapture the original code, I realized that trying to 'reverse' the <pre> tags' output results by e.g. converting < to <, etc. may provide unwanted results, which it did using those functions and/or manually using str_replace(), et.al.
For example, reversing something like to a 'space' may be desired in one case or maybe should not be reversed in another. When using within PHP or HTML code, I wouldn't want that entity to be reversed, but I would want it reversed when, say, typing a poem. That's when it dawned on me (and I know this, wow...) that the original data when typed was then stored into a variable before being displayed by the browser. I was looking at it from the editor perspective too long, I guess. But I got it now and learned some more good stuff along the way so...
Thanks again.
I will mark this thread 'resolved.'