Skip to content

Commit e390dfb

Browse files
Merge pull request #293 from Shivam7-1/patch-2
Update BlockEditor.js DOM text reinterpreted as HTML
2 parents 0f619e9 + d88609d commit e390dfb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/BlockEditor/BlockEditor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -646,7 +646,7 @@ export class BlockEditor extends React.PureComponent {
646646
const textAsBlob = new Blob([this.state.xml], { type: 'text/plain' });
647647
const downloadLink = document.createElement('a');
648648
downloadLink.download = `${this.props.project.name}-${this.props.project.id}.xml`;
649-
downloadLink.innerHTML = 'Download File';
649+
downloadLink.innerText = 'Download File';
650650
if (window.webkitURL != null) {
651651
// Chrome allows the link to be clicked without actually adding it to the DOM.
652652
downloadLink.href = window.webkitURL.createObjectURL(textAsBlob);

0 commit comments

Comments
 (0)