docbrown/app/helpers
Jeremy Friesen aa7712a80e
Extracting container for allowed tags & attrs (#15338)
* Extracting container for allowed tags & attrs

Prior to this commit, we had several different locations in which we
specified ALLOWED_TAGS and ALLOWED_ATTRIBUTES for HTML rendering and
sanitization.

Curious to see how these either intersected or didn't, I opted to
create a container module that allows for us to more readily normalize
these allowed tags and attributes.  It's possible that we won't do any
normalization, but this work helps make that easier.

Ideally, I'd love us to contextualize "why did we choose the
tags/attributes we chose?"  But for now, I think consolidating these
tags and attributes will help make adding a `details` and `summary` tag
easier.

This relates to forem/rfcs#296

See [Google Sheet][1] for analysis of what tags/attributes are used, the
intersection and union.

[1]:https://docs.google.com/spreadsheets/d/1yj-a1qus1o0o4cj-_gOMP5yteeg-_f3s5z7kvK0Y7RM/edit#gid=0

* Fixing misnamed constant

* Fixing misnamed constant

* Extracting additional HtmlRendering use cases

* Adding comparative documentation for HTML tags

* Fixing broken parameter signature

* Moving constants into MarkdownProcessor
2021-12-16 12:24:45 -05:00
..
admin_helper.rb RFC 50 - Remove old admin routes and related code (#13579) 2021-05-03 16:03:38 +02:00
application_helper.rb Extracting container for allowed tags & attrs (#15338) 2021-12-16 12:24:45 -05:00
articles_helper.rb Remove unused assets (#15367) 2021-11-16 19:57:37 +01:00
authentication_helper.rb Enable Forem (Passport) Auth (#15141) 2021-11-23 14:59:00 -06:00
broadcasts_helper.rb Add ahoy + welcome notification tracking (#8758) [deploy] 2020-06-18 13:40:14 -07:00
comments_helper.rb Hiding comments: an option to hide or keep children (#15178) 2021-11-18 11:57:40 +03:00
date_helper.rb Add I18n date format example (#14973) 2021-10-08 15:08:56 -04:00
display_ad_helper.rb Rubocop fixes (#14868) 2021-09-30 13:22:09 -04:00
feedback_messages_helper.rb Split Settings::Community from SiteConfig (#13403) 2021-04-26 10:46:35 +02:00
listing_helper.rb [deploy] Rename classified listings (#7910) 2020-05-27 13:35:09 +00:00
notifications_helper.rb ✂✂✂ Remove Connect (#14734) 2021-11-18 08:21:00 -06:00
organization_helper.rb [deploy] Add org credit management to org mod page (#7761) 2020-05-11 16:49:05 +02:00
profile_helper.rb [Small Wins] Show character limits for profile inputs (#15255) 2021-11-05 09:11:42 -04:00
rate_limit_checker_helper.rb Bump rubocop from 1.17.0 to 1.18.0 (#14107) 2021-07-01 13:51:49 +02:00
settings_helper.rb [deploy] Label Experience Level Scale in User Settings (#8454) 2020-06-16 15:41:30 +02:00
social_image_helper.rb Fix Ruby 2.7 kwargs' warnings & misc spec warnings (#13256) 2021-04-06 16:57:59 -04:00
social_link_helper.rb Refactor internal users index (#7457) 2020-04-24 17:27:07 -04:00