Fix embedded code being removed

no issue
- changed order of escaping

**Before:**
![image](https://cloud.githubusercontent.com/assets/539213/3811309/976d1730-1c9d-11e4-8cc2-102762877108.png)

**After:**
![image](https://cloud.githubusercontent.com/assets/539213/3811311/a04bf466-1c9d-11e4-98e0-88b6aaefa4b7.png)