In javascript, I need to capitalize each first letter of words in a string (proper name) but not when before an apostrophe such as this example :
from henri d'oriona --> Henry d'Oriona
All I can get is something like Henry D'oriona or best case Henry D'Oriona.
Thanks for your help
Jacques