You can use the split()
method to split a string into an array of substrings. In this case, you can split the string between "><" as follows:
index.tsx121 chars4 lines
The split()
function splits the string on the "><" characters, and returns an array of substrings.
gistlibby LogSnag