Version: v0.7.1 - Beta.  We welcome contributors & feedback.

String.civilize

civilize() -> string

Description

Fix obnoxious patterns in a user-submitted string, by applying these filters:

$comment = 'AAAAAAAAAH HELP ME FIX THIS!!!!!!!!!'
$comment.civilize()
//= 'Aaah help me fix this!'

See Also