Fix track changes handling in TermTagger integration logic

XMLWordPrintable

      Problem

      If segment has only <del> track changes without <ins> - they will not be correctly removed from text before sending to TermTagger

      Because of that some terms may not be found in result

      Solution

      Remove track changes correctly

      Example

      Tsis is text with te<del class="trackchanges ownttip deleted" data-usertrackingid="8346" data-usercssnr="usernr2" data-workflowstep="reviewing4" data-timestamp="2026-07-22T12:05:37+02:00" data-historylist="1784666333000" data-action_history_1784666333000="INS" data-usertrackingid_history_1784666333000="8309" style="">l</del><del class="trackchanges ownttip deleted" data-usertrackingid="8346" data-usercssnr="usernr2" data-workflowstep="reviewing4" data-timestamp="2026-07-22T12:05:36+02:00" data-historylist="1784666333000" data-action_history_1784666333000="INS" data-usertrackingid_history_1784666333000="8309" style="">igt </del>rm and del track changes. 

      In such segment TermTagger logic fails to find term "term"

            Assignee:
            Sanya Mikhliaiev
            Reporter:
            Sanya Mikhliaiev
            None
            None
            Thomas Lauria
            NO-FRONTEND-TESTING NEEDED
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              None
              None