mimo84/bootstrap-maxlength — pull request #72 by ashleyglee (2014-09-05 03:02:34+00:00)
Title: Option to count newlines as 2 characters

Allow option to treat newlines as 2 characters. Chrome and IE both treat newlines as 2 characters on form submit. Also, newlines inserted into Microsoft DB (haven't tested on mySql) are treated as 2 characters so this allows textarea maxwidth to match browser functionality and DB schema, as maxlength typically is matched with DB schema.

Chrome won't allow a user to enter text over the maxlength character count counting newlines as 2 characters.
IE will allow a user to enter text up to the maxlength counting newlines as 1 character. But IE will not allow the form to submit until the character count is reduced to match newlines = 2 characters.