I had to switch to using <emit source=sql> rather than <sqloutput>.
That let me change the comment output code to: <replace from=& to=&>&_.text;</replace>
-Jeff