Escaped "$" in replacements.
Use Array.split|join instead of String.replace because it fails in IE7 if replacement controls are in use.
Changelog entry.
Merge branch 't/10367'