Added htmlentities to echoing the value so it can handle special characters like double quotes.