There was an error while loading. Please reload this page.
2 parents 20ad297 + b629fa5 commit 7d6b358Copy full SHA for 7d6b358
1 file changed
lib/publify_core/string_ext.rb
@@ -18,7 +18,7 @@ def to_permalink
18
string = string.tr(key.join, value)
19
end
20
string = string.tr("'", "-")
21
- string.gsub(/<[^>]*>/, "").to_url
+ Rails::HTML5::FullSanitizer.new.sanitize(string).to_url
22
23
24
# Returns a-string-with-dashes when passed 'a string with dashes'.
0 commit comments