adding code to handle html tags