there is a div with some values like this:
<div id="links">
<link1>||<link2>||<link3>
</div>
i know in javascript we can make an array of a string with str.split("||"); but my problem is i can't define a variable for some reasons in this case, i just need to get values of div block like a var,but i don't know how, i need something like this from above block:
var str = '<link1>||<link2>||<link3>';