Thanks, everyone below, the original problem has been solved. Now there is a small problem that I don’t know how to solve.
If it is an ampersand, when it is passed to the text box, it will become & How to solve it? The effect is as follows
has been solved. . . Replace innerHTML with childNodes[0].nodeValue and the problem will be solved. . .