Add checks for escaped HTML