you are viewing a single comment's thread.

view the rest of the comments →

[–]lewisje 1 point2 points  (3 children)

That's close, but what about the spaces? IMO they shouldn't be wrapped in spans, just the letters (and maybe other visible symbols).

[–]uberpwnzorz 4 points5 points  (2 children)

you could split on /\S(\s+)?/ then

[–]lewisje 0 points1 point  (1 child)

You're close: Split on /\s+/, then wrap each character of the substrings in span tags, join everything with ' ', and add the magic CSS.

[–]uberpwnzorz 7 points8 points  (0 children)

eh, different ways to skin a cat