Refined output to support embedded HTML