If you don’t get any answers you like better, here is my strategy for dealing with a similar situation that completely avoids innerHTML.
If you don’t get any answers you like better, here is my strategy for dealing with a similar situation that completely avoids innerHTML.