Complex sentence: The legislation did not apply to children who lived with their parents in the community, as it was expected that parents would be responsible for the health and safety of their children, not factory owners.
Split into simpler sentences: The legislation did not apply to children who lived with their parents in the community. It was expected that parents would be responsible for the health and safety of their children, not factory owners.