timdown / rangy

A cross-browser JavaScript range and selection library.
MIT License
2.24k stars 368 forks source link

Get Selection HTML #461

Closed andvvv closed 4 years ago

andvvv commented 4 years ago

hi, was checking demo page http://lezuse.github.io/rangy/demos/core.html very nice, btw,

question - when highlight for example word football (which is bold), and try to get HTML, it will return football without tags, but if select " football," (with space and comma), then it returns with tags.

page source shows " football," tags only for word football.

thank you, victor