Preserve the newline within a contenteditable div
I am making a web extension.I wanted to highlight gender sensitive words written inside the contenteditable div, the reference is the dictionary[]. But when I try to type in a contenteditable div, newline(when I press enter) is not registering or like nullified.