Complex sentence: She spent several months in sanatoriums, which according to herself did strengthen her so that she could "stand it all", and inspired Thomas Mann to his novel The Magic Mountain.
Split into simpler sentences: She spent several months in sanatoriums, which according to herself did strengthen her so that she could "stand it all". The sanatorium episode inspired Thomas Mann to his novel The Magic Mountain.