Hello guys, I need a complex editing code. I am displaying user data present in table on a html page. I need a code that does all of the following.
1. Ensure that first word of a sentence is capital. The sentence may end with . ? or !
2. Alphabet I should be always capital and never i.
3. Unless specified, a sentence must end with a period.
4. There should be a single white space after period, comma or question mark.
I need one efficient code to do all this. Can anyone do it for me?