Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<script src="https://code.jquery.com/jquery-1.6.4.js"></script>
<script src="https://code.jquery.com/jquery-2.1.4.js"></script>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width;" />
  <title>JS Bin</title>
</head>
<body>
  <ul>
    <li title="title 1">title 1</li>
    <li title="title 2">title 2</li>
    <li title="title 3">title 3</li>
  </ul>
</body>
</html>
 
String.prototype.repAll = function (s1, s2) {
      return this.replace(new RegExp(s1, 'gm'), s2);
};
    var tempat = '<i class="at fa fa-at"></i><i data-join=",">kam</i><i data-join=",">bbb</i><i data-join=",">老司机</i>'.replace('<i class="at fa fa-at"></i>', '').repAll('">', '">|'));
    $arr[8] = tempat.text().replace('|', '');
    $arr[9] = '<i>' +$arr[8].repAll('|', '</i><i class="cc">')+ '</i>';
Output

This bin was created anonymously and its free preview time has expired (learn why). — Get a free unrestricted account

Dismiss x
public
Bin info
anonymouspro
0viewers