As Zach stated, you can escape double-quotes in the macro. I would aslo recommend that you try to use open loops when possible. For example:
{% foreach(s in "a,b,c".Split(",")) { %}
<a href="{%s%}">{%s%}</a><hr style="margin: .25em 0 .5em 0;"/>
{% } |(identity)GlobalAdministrator%}
This removes the need to escape or otherwise parse the output.