Monday, May 14, 2012

Split a sentence/string in to words using Jquery

I have a sentece/H1 and I need this to split so that it would look like below



Original state



<h1>This is the heading </h1>


after



<h1>This <br> 
is <br>
the <br>
heading </h1>




No comments:

Post a Comment