Ensure title doesnt get html encoded with new appreader

This commit is contained in:
Jackson Harper 2022-03-29 09:28:40 -07:00
parent b3f46f4ce5
commit 709b96eaa7

View file

@ -41,9 +41,6 @@ struct WebReaderContent {
<div id='_omnivore-htmlContent' style="display: none;">
\(articleContent.htmlContent)
</div>
<div id='_omnivore-title' style="display: none;">
\(item.title)
</div>
<script type="text/javascript">
window.omnivoreEnv = {
"NEXT_PUBLIC_APP_ENV": "prod",
@ -60,7 +57,7 @@ struct WebReaderContent {
savedAt: \(savedAt),
publishedAt: \(publishedAt),
url: `\(item.pageURLString)`,
title: document.getElementById('_omnivore-title').innerHTML,
title: `\(item.title.replacingOccurrences(of: "`", with: "\\`"))`,
content: document.getElementById('_omnivore-htmlContent').innerHTML,
originalArticleUrl: "\(item.pageURLString)",
contentReader: "WEB",