insert-tag
Insert tag to the specific position of a xml/html string:
xxxyyyzzz
to
xxxyyyzzz
Getting started
Installation
npm install insert-tag --save
Usage
; ;// <a>xx<mark>x<b>yy</b></mark><b>y</b>zzz<a>
[0, 2, 0, 5]
meas from line 0, column 2 to line 0, column 5
For more examples, please see tests
Tests
npm run test