Inlining of javascript containing strings like '$1' fails
Bug
Javascript may contain strings like '$1'. Inlining such javascript with the option 'addInDocument'/'addContentInDocument' does not work correctly.
What should happen
Javascript gets inlined.
What actually happens
In the inlined javascript every string like '$1' is replaced by an empty string.