Skip to content

Commit 0bc8548

Browse files
Merge pull request #294 from Shivam7-1/patch-3
Update BlockEditorToolbar.js DOM text reinterpreted as HTML
2 parents e390dfb + 27b4acb commit 0bc8548

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/BlockEditor/BlockEditorToolbar.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ export class BlockEditorToolbar extends React.PureComponent {
203203
});
204204
const downloadLink = document.createElement('a');
205205
downloadLink.download = `${this.props.project.name}-${this.props.project.id}.xml`;
206-
downloadLink.innerHTML = 'Download File';
206+
downloadLink.innerText = 'Download File';
207207
if (window.webkitURL != null) {
208208
// Chrome allows the link to be clicked without actually adding it to the DOM.
209209
downloadLink.href = window.webkitURL.createObjectURL(textAsBlob);

0 commit comments

Comments
 (0)