Fixes #5165 handling html tags passed as tags