the `simple_format` rails helper should do exactly this.