I cannot understand the sentence below. Please help.
Es war einmal ein kleines süßes Mädchen, das hatte jedermann lieb, der sie nur ansah, am allerliebsten aber ihre Großmutter, die wusste gar nicht, was sie alles dem Kinde geben sollte.
Is my interpretation below correct?
Once upon a time there was a girl who liked everyone, of the those who just watched her was her grandmother who didn't know what she should give her grand daughter.
My first question is "das hatte jedermann lieb" is it
A : "who loved everyone" or
B : "whom everyone loved"?
I think it's A. If it was B, it should be "das jedermann lieb hatte". I am studyng German. In beginner level.