better sub html handling