fn fill_placeholders_in_text<'a>( text: &'a str, replacements: &HashMap<String, String>, is_html: bool, unfilled: &mut BTreeSet<String>, ) -> Cow<'a, str>