Commit 2e6120dc authored by Jett Marlowe's avatar Jett Marlowe

Update ajax_variable_list.js to use lodash escape

parent c94a8806
import _ from 'underscore'; import { escape as esc } from 'lodash';
import axios from '../lib/utils/axios_utils'; import axios from '../lib/utils/axios_utils';
import { s__ } from '../locale'; import { s__ } from '../locale';
import Flash from '../flash'; import Flash from '../flash';
...@@ -10,7 +10,7 @@ function generateErrorBoxContent(errors) { ...@@ -10,7 +10,7 @@ function generateErrorBoxContent(errors) {
const errorList = [].concat(errors).map( const errorList = [].concat(errors).map(
errorString => ` errorString => `
<li> <li>
${_.escape(errorString)} ${esc(errorString)}
</li> </li>
`, `,
); );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment