Skip to content

Add explicit path for html_escape methods in safe_format_helper.rb

What does this MR do and why?

It add explicit module/class for html_escape and html_escape_once methods used in safe_format_helper.rb.

Without using the ERB::Util using safe_format method in areas not related to views or view-components would fail since ERB::Util is not available (e.g. !130862 (merged)).

Original thread on Slack. Thanks @jessieay for the help!

Screenshots or screen recordings

N/A

How to set up and validate locally

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Ammar Alakkad

Merge request reports