Support html output using hook