ailindev
12/18/2018 - 8:10 AM

last_word_wrap_to_span.js

$('.class').each( function() {
      let thisEl = $(this);
      thisEl.html(thisEl.html().replace(/(\S+)\s*$/, '<span>$1</span>'));
   });