I'll throw in that the CSS property text-transform: capitalize will do exactly this. I realize this might not be what you're asking for - you haven't given us any of the context in which you're running this - but if it's just for presentation, I'd definitely...
I was curious to see how the browsers have handled text copied from a page where the content was styled to uppercase. I made the following sample block using thetext-transformvaluescapitalize,uppercase,lowercase, andfull-width: This content has no text-transform applied to it. This content ha...
Capitalize Words in Text Text Case Inverter Truncate Text Lines Trim Text Lines Spaces to Tabs Converter Tabs to Spaces Converter Spaces to Newlines Converter Newlines to Spaces Converter Character Accent Remover Extra Whitespaces Remover All Whitespaces Remover ...
not. Both Webkit and Gecko incorrectly considered letter-based symbols likeⓐto be real letters. Internet Explorer 9 was the closest to the CSS 2 definition, but with some weird cases.) By precisely defining the correct behavior, CSS Text Level 3 cleans this mess up. Thecapitalizeline in ...