modify-actiontext-html-output

By gorails-screencasts

Modify-actiontext-html-output Alternatives

Similar projects and alternatives to modify-actiontext-html-output

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better modify-actiontext-html-output alternative or higher similarity.

modify-actiontext-html-output reviews and mentions

Posts with mentions or reviews of modify-actiontext-html-output. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-10-09.
  • ActionText: Safe listing attributes and tags
    2 projects | dev.to | 9 Oct 2022
    We can create a file called config/initializers/action_text.rb and fill it with some custom contents for allowable things. Let's say for example we wanted to add table editing. We'd need to add , , , and .In addition, we may also want to add some additional attributes which we could also do here say perhaps target for links. # config/initializers/action_text.rb # Add table tags ActionText::ContentHelper.allowed_tags += ["table", "tr", "td", "th", "thead", "tbody"] # Add link attributes ActionText::ContentHelper.allowed_attributes += ["rel", "target"] Enter fullscreen mode Exit fullscreen mode , , You can also see an example from @excid3 's latest ActionText episode: https://github.com/gorails-screencasts/modify-actiontext-html-output/blob/master/config/initializers/action_text.rb https://gorails.com/episodes/modify-and-customize-actiontext-html-output?autoplay=1 If you're feeling real wild, you could even replace the sanitizer and scrubber with your own custom sanitizer / scrubber!

Stats

Basic modify-actiontext-html-output repo stats
1
2
10.0
almost 2 years ago

The primary programming language of modify-actiontext-html-output is Ruby.


Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com