Parliamentary opposition leader Anwar Ibrahim told the Kuala Lumpur High Court that there should be laws to discriminate against homosexuals to protect the sanctity of heterosexual marriage.