Guest User

Untitled

a guest
Sep 6th, 2015
72
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var text = $('.stars').text();
  2. var newText = text.replace(/[^\d\+]/g, '<i class="fa fa-star"></i>');
  3. $('.stars').html(newText); // .text() doesn't neither work
RAW Paste Data