its not a php issue;
because.....its working how it was designed...highlight a word ...check..thats how it is support to work.
When its copied...its copying the format..Im quite surprised editplus keeps that formatting.
Which brings me to; the browser? why is the browser copying it some tag code?
i cant reproduce this..
jquery to remove it, sure...but that was its design initially.