Skip to content

Conversation

@t27duck
Copy link

@t27duck t27duck commented Oct 8, 2025

The bidirectional_time_distance_in_words_with_title helper outputs a html-safe span tag. However it is used in string interpolation in the blocked jobs table making which is not html-safe by default resulting in the the raw html being displayed on the page.

This calls #html_safe on the string to not escape the markup.

Before the change:
Screenshot 2025-10-08 at 4 40 30 PM

After:
Screenshot 2025-10-08 at 4 40 54 PM

The `bidirectional_time_distance_in_words_with_title` helper outputs a html-safe span tag. However it is used in string interpolation in the blocked jobs table making which is not html-safe by default resulting in the the raw html being displayed on the page.

This calls `#html_safe` on the string to not escape the markup.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant