-
Notifications
You must be signed in to change notification settings - Fork 355
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
join
May Cause Unwanted HTML Escapes
#661
Comments
@lcreid Any more concrete example for this? |
If I search for
The code has been like this for a long time and we have no complaints. And if it's "broken", I think it's broken in the safe direction, meaning it will err on the side of escaping HTML. It's just something that I've always wanted to look at. Maybe when I retire, if I can ever afford to. Ha ha. |
I propose we either define what needs to change or close this issue and #653 . |
I took a run at this last week when my COVID wasn't so bad and ran into one case where the right solution isn't obvious. Still working on it. |
Fixed by #704 |
Array#join
always produces aString
, so some uses ofjoin
in our code may be causing HTML-safe strings (e.g. error messages) to become "unsafe" and then they'll get escaped.One place to investigate:
bootstrap_form/lib/bootstrap_form/components/validation.rb
Line 74 in 57a5be7
May be related to #653?
The text was updated successfully, but these errors were encountered: