Escape closing script tags in HTML input/output embedded in the initial markup