
Security News
CISA’s 2025 SBOM Guidance Adds Hashes, Licenses, Tool Metadata, and Context
CISA’s 2025 draft SBOM guidance adds new fields like hashes, licenses, and tool metadata to make software inventories more actionable.
As of version 3, Rails doesn't have the textilize
and textilize_without_paragraph
helper methods.
Textilize is a gem brings back the missing method for Rails 3, and it includes the library RedCloth 3.0.4 (newest is at 4.X), which doesn't need to be compiled on server.
The reason we need this gem is that we use :textilize at a few places in our apps, and we don't need super fast RedCloth, we just need a working version that don't force us to install C extensions on various production servers. This could be useful for bundle-package usage, where you can rely on the bundle/cache gems.
BTW, Textilize is not always the top choice, there are some useful gems that are doing it great, but they will requires C extension due to higher version of RedCloth dependency:
https://github.com/dtrasbo/formatize/
https://github.com/rohit/prarupa
Put gem 'textilize'
into your Gemfile and do a bundle install
, and that's
it.
textilize
& textilize_without_paragraph
helper methodstextilize("I _love_ ROR(Ruby on Rails)!")
# => "<p>I <em>love</em> <acronym title="Ruby on Rails">ROR</acronym>!</p>"
textilize_without_paragraph("I _love_ ROR(Ruby on Rails)!")
# => "I <em>love</em> <acronym title="Ruby on Rails">ROR</acronym>!"
rake test
whytheluckystiff: RedCloth library
David Heinemeier Hansson: the text helper.
Copyright (c) 2012 Kudelabs
Released under the MIT License. See LICENSE for details.
FAQs
Unknown package
We found that textilize demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CISA’s 2025 draft SBOM guidance adds new fields like hashes, licenses, and tool metadata to make software inventories more actionable.
Security News
A clarification on our recent research investigating 60 malicious Ruby gems.
Security News
ESLint now supports parallel linting with a new --concurrency flag, delivering major speed gains and closing a 10-year-old feature request.