xss_span_sentence_words

xss_span_sentence_words($title, $class = "word")

  • $title: text to process.
  • $class: css class to add to span elements.

Split any text into words, and join it again. Words will be enveloped in span. Short 1 or 2 letter words will be merged to longer words. Span tags generated will use $class with addition of the index of the word in the sequence.

Comments

Leave a Reply