Skip to content

Commit

Permalink
[1.239.*] Pre-release merge (#754)
Browse files Browse the repository at this point in the history
  • Loading branch information
tramline-github[bot] authored Sep 29, 2024
2 parents 5d84d25 + 4f95138 commit 5e5f107
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion shared/src/commonMain/composeResources/files/reader/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,9 @@ async function renderReaderView(link, html, colors) {
{}
);

const sanitizedHtml = `<div>${html}</div>`
//noinspection JSUnresolvedVariable
const result = await Mercury.parse(link, { html: html });
const result = await Mercury.parse(link, { html: sanitizedHtml });
const content = result.content || html;

document.getElementById("content").innerHTML += content;
Expand Down

0 comments on commit 5e5f107

Please sign in to comment.