2019-06-05 08:52:38 -04:00
|
|
|
export default function formatTextWithSelection(text, [start, len]) {
|
2018-07-29 16:51:32 -04:00
|
|
|
return [
|
|
|
|
'"',
|
|
|
|
text.substr(0, start),
|
|
|
|
"<",
|
|
|
|
text.substr(start, len),
|
|
|
|
">",
|
|
|
|
text.substr(start + len),
|
|
|
|
'"'
|
|
|
|
].join("");
|
2019-06-05 08:52:38 -04:00
|
|
|
}
|