Skip to content

Commit 8343187

Browse files
author
Geoffrey Challen
committed
Fix quote replacement
All quotes need to be rewritten, not just the first.
1 parent 45e89f5 commit 8343187

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/htmltojsx.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ HTMLtoJSX.prototype = {
487487
if (isNumeric(attribute.value)) {
488488
result += '={' + attribute.value + '}';
489489
} else if (attribute.value.length > 0) {
490-
result += '="' + attribute.value.replace('"', '"') + '"';
490+
result += '="' + attribute.value.replace(/"/gm, '"') + '"';
491491
}
492492
return result;
493493
}

0 commit comments

Comments
 (0)