attempt at proper replacement html

previously replacement html was
replacementhtml =  highlightStartTag + selectionhtml + highlightEndTag;

this has errors when html has subnodes with different colored text.