fix: escape HTML entities in code editor log (#37601)

This commit is contained in:
Oliver Eyton-Williams
2019-10-31 12:26:10 +00:00
committed by mrugesh
parent c22ca2429e
commit c6a11dd50a

View File

@ -9,6 +9,7 @@ import {
getContext
} from 'redux-saga/effects';
import { channel } from 'redux-saga';
import escape from 'lodash/escape';
import {
challengeDataSelector,
@ -73,7 +74,7 @@ export function* executeChallengeSaga() {
function* logToConsole(channel) {
yield takeEvery(channel, function*(args) {
yield put(updateLogs(args));
yield put(updateLogs(escape(args)));
});
}