Pull Request #5340: Added wrapper tag for simple format, added test by KensoDev · rails/rails
Following my latest post about the simple_format, I think that it’s broken to assume only “p” tags are valid wrappers.
So, I opened a pull request to Rails itself.
Basically, it changes simple_format so you can pass in the wrapper tag you want, I found myself wanting a “div” or a “span” too many times.
Enjoy!Submit to Hacker News
[NOTE] This post has been imported to Hugo from a Wordpress blog. It may be broken, missing images, code snippets or other information.
[NOTE] updated March 13, 2012. It's 2512 days old . This article may have outdated content.