Merge pull request #342 from omnivore-app/fix/ios-title-encoding

Ensure title doesnt get html encoded with new appreader
This commit is contained in:
Satindar Dhillon 2022-03-29 09:47:58 -07:00 committed by GitHub
commit 07a4ca37cd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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",