Entanglement in topological systems