resolved issue where non tag content is being removed