Properly enclose HTML block