sanitizing post content in angular and rails