Fix embedded code being removed

no issue
- changed order of escaping
Merge pull request #3598 from sebgie/fix-embedded-code

Fix embedded code being removed