Former Democratic presidential candidate Bernie Sanders says he's prepared to work with Donald Trump if the US president-elect champions working families but vows to oppose him vigorously if Trump resorts to discrimination and xenophobia.