I\'m looking to vertically align text by adding
tags between characters with jQuery.
Mr Kurt's answer works well for a single id, but if you want something more useful that can be applied to several elements try something like this:
$.each( $(".verticalText"), function () { $(this).html($(this).text().replace(/(.)/g, "$1
")) } );
Then just set class="verticalText"
on the elements you want to be formatted like this.
And as a bonus it keeps the boob regex.