Skip to content

komposable/sanitize_rich_text

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SanitizeRichText

Build Status

Installation

gem 'sanitize_rich_text'

Usage

class Article < ApplicationRecord
  sanitize_rich_text :text, elements: %w(h2 h3 p a), attributes: { 'a' => ['href', 'target'] }
end

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published