diff --git a/index-test.js b/index-test.js
index 785bf813e..1cbd30599 100644
--- a/index-test.js
+++ b/index-test.js
@@ -70,18 +70,18 @@ describe('reactElementToJSXString(ReactElement)', () => {
reactElementToJSXString(
React.createElement('div', { title: "<'hello' you & you>" })
)
- ).toEqual('
');
+ ).toEqual('');
});
it("reactElementToJSXString( }} />)", () => {
expect(
reactElementToJSXString(
- }} />
+ Hello "' you
}} />
)
).toEqual(
`
+ nested: Hello "' you
}}
/>`
);
diff --git a/index.js b/index.js
index 2529a66e9..653199d56 100644
--- a/index.js
+++ b/index.js
@@ -5,8 +5,9 @@ import isPlainObject from 'is-plain-object';
import stringify from 'stringify-object';
import sortobject from 'sortobject';
import traverse from 'traverse';
-import { fill, escape } from 'lodash';
+import { fill } from 'lodash';
+const escape = s => s.replace(/"/g, '"');
const defaultFunctionValue = fn => fn;
export default function reactElementToJSXString(