Knots and entanglement