I’m using something like this
selection = window.getSelection()
I can obtain the content by using
teks = selection.toString()
But it just returns the string, I want to return the innerHTML like if the InnerHTML is <b>Hello</b>
it will return <b>Hello</b>
if the user select the word Hello
not just returning Hello
Anyone know how to do it?