rails / rails-html-sanitizer

MIT License
302 stars 80 forks source link

fix: ensure LinkSanitizer returns utf-8 encoded strings #163

Closed flavorjones closed 1 year ago

flavorjones commented 1 year ago

Previously, 23622984 ensured utf-8 encoded values were returned from SafeListSanitizer, and 49dfc158 continued this practice for FullSanitizer.

At no point was this behavior added to LinkSanitizer, which is fixed by this commit.