Fix custom command output with special characters

All output is in <pre> tags, and HTML special characters are &; encoded