in reply to backticks/escapeHTML strange behaviour with assignment

The only thing I can think of right off the top is that without the assignment in Take 1 the newlines are preventing more than the first "echo" from being seen by escapeHTML.

It helps to remember that the primary goal is to drain the swamp even when you are hip-deep in alligators.