Steps to reproduce
- Open some page on wiki (e.g. sandbox on cswiki)
- Click "edit source" (OWE)
- Click on "reference" button
- Insert {{subst:some template}} (e.g. {{subst:str len|abc}}) into the openned dialog and click insert button
- Save page
Expected result
Template should be substed and its source code should be saved
Current result
<ref>{{subst:some template}}</ref> is saved instead