unwanted element appear when using Decoration.replace

After using Decoration.replace, the generated html content contains a strange element
(<img class="cm-widgetBuffer" aria-hidden="true">).
How to make this element not appear?
Please tell me any solution for my problem?

You can’t. Why is this element causing problems for you?

Because I using html result for another system. I can’t change handle for this system. My customer doesn’t want redundant components to appear

Emitting clean HTML for use in other contexts is not something the editor will do for you. Look into @lezer/highlight if you are looking for syntax highlighting.

I have understood . Thank you