copy-selection-element
Copy html from selection element.
installation
npm install @jswork/copy-selection-element
usage
import copySelectionElement from "@jswork/copy-selection-element";
const el = document.querySelector(".content");
const successful = copySelectionElement(el);
if (successful) {
// do somthing...
}
license
Code released under the MIT license.