Compare projects
Project comparisons allow you to view any selection of projects side by side just like they're shown on regular categories or in search results. You can try out an example or start yourself by adding a library to the comparison via the input below. You can also easily share your current comparison with others by sending the URL of the current page.
0.0
htmlsafeslip parses Ruby source with Ripper to find a call to
`.html_safe` directly on an expression, or a `raw(...)` wrapping one,
where that expression is traceable (directly, or via a same-method
local-variable assignment) to `params[...]`/`params.dig(...)`, with no
`sanitize(...)`/`strip_tags(...)`/`h(...)`/`ERB::Util.html_escape(...)`
call applied to it first. Both `.html_safe` and `raw(...)` tell Rails'
view layer "this string is already safe HTML, don't auto-escape it" --
calling either directly on unsanitized, user-controlled input defeats
Rails' single biggest built-in XSS defense, turning a reflected or
stored script-tag payload into live, executing HTML the instant it's
rendered.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026