Securing input by using htmlentities