Use block parameter rather than `$1` during `gsub!` so `ActiveSupport::SafeBuffer` values aren't mangled.

Fixes #15064
Require active_support/core_ext/string/output_safety and use html_safe rather than use non-public SafeBuffer API.
Update and add tests in array_ext_test.rb

- Fix `test_to_with_instruct` typo to `test_to_xml_with_instruct`

- Rename `test_to_xml` to `test_to_xml_with_hash_elements` to make test
name more specific.

- Add `test_to_xml_with_non_hash_elements` and
`test_to_xml_with_non_hash_different_type_elements`

  `to_xml` behaves different when containing elements are same and
  different types.

- Add `test_to_xml_with_indent_set`
Update require in `array_ext_test.rb`

Removed `FIMXE` tag to require necessary file but not the whole core_ext
simplify AC:ViewPaths::_prefixes. by making it recursively traversing up the inheritance chain, classes can override local prefixes.
deprecate AbC:Base::parent_prefixes.
rename ::_local_prefixes to ::local_prefixes to state the public attribute.
document the latter.
make ::local_prefixes private, test overriding it and remove documentation for overriding ::_parent_prefixes.
[postgres] include PgArrayParser directly and only load/include ArrayParser if not found
Use i18n master to run tests
options already have symbolized keys, so we can avoid this call
the :only_path option is applied by the time the helper is called
just merge instead of dup and merge
use fewer method calls to determine the url_for options
Remove falsy deprecation note in AS guides [ci skip]

This is no longer true as @jeremy removed the deprecation in 7a5601c.
Merge pull request #15094 from gsamokovarov/patch-1

Remove falsy deprecation note in AS guides [ci skip]
calls with :host should still use the optimized path
Merge pull request #15073 from ifyouseewendy/master

Update and add tests in array_ext_test.rb
Merge pull request #15072 from mjtko/fix/issue-15064

[Fixes #15064] Calling number_to_delimited on a ActiveSupport::SafeBuffer results in mangled output
[ci skip] Fix a factual error and highlight code in generators guide.
Merge pull request #15095 from JuanitoFatas/doc/generators

[ci skip] Fix two factual errors and highlight code in generators guide.
Merge pull request #15092 from kares/pg-array-parser

[postgres] include PgArrayParser directly