fixes an issue with html tags