Skip to content

Commit

Permalink
Merge pull request #293 from Shivam7-1/patch-2
Browse files Browse the repository at this point in the history
Update BlockEditor.js DOM text reinterpreted as HTML
  • Loading branch information
MarkusBordihn authored Apr 26, 2024
2 parents 0f619e9 + d88609d commit e390dfb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/BlockEditor/BlockEditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -646,7 +646,7 @@ export class BlockEditor extends React.PureComponent {
const textAsBlob = new Blob([this.state.xml], { type: 'text/plain' });
const downloadLink = document.createElement('a');
downloadLink.download = `${this.props.project.name}-${this.props.project.id}.xml`;
downloadLink.innerHTML = 'Download File';
downloadLink.innerText = 'Download File';
if (window.webkitURL != null) {
// Chrome allows the link to be clicked without actually adding it to the DOM.
downloadLink.href = window.webkitURL.createObjectURL(textAsBlob);
Expand Down

0 comments on commit e390dfb

Please sign in to comment.