{ "schema_type": "object", "schema_version": "1.0", "name": "safe_join", "path": "packages/ree_text/package/ree_text/functions/safe_join.rb", "mount_as": "fn", "class": "ReeText::SafeJoin", "factory": null, "methods": [ { "doc": "This method returns an string similar to what Array#join\nwould return. The array is flattened, and all items, including\nthe supplied separator, are HTML escaped.\n\n safe_join([\"

foo

\", \"

bar

\"], sep: \"
\")\n # => \"<p>foo</p><br /><p>bar</p>\"", "throws": [ ], "return": "String", "args": [ { "arg": "array", "type": "Array" }, { "arg": "opts", "type": "Ksplat[:sep? => String]" } ] } ], "links": [ { "target": "escape_html", "package_name": "ree_text", "as": "escape_html", "imports": [ ] } ] }