added ignores for intellij idea
the $item 's html is now only overwritten when matched text should be highlighted

Html is saved to ensure entire contained html is restored instead of only the text