summaryrefslogtreecommitdiff
path: root/public/js
diff options
context:
space:
mode:
authorWu Cheng-Han2017-10-05 09:59:57 +0800
committerWu Cheng-Han2017-10-05 09:59:57 +0800
commitb0b417cefcc91b2c14f48d4b0b41008d1e12754c (patch)
tree170f9c2cf02e82ff25ede3036e9d803aa8909a54 /public/js
parent8979f215ab8b175f0dd0da770b634b8f6c94ab68 (diff)
Fix unescape > symbol inside the style tags to make the CSS works
Diffstat (limited to 'public/js')
-rw-r--r--public/js/extra.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/public/js/extra.js b/public/js/extra.js
index bf388139..b23d732f 100644
--- a/public/js/extra.js
+++ b/public/js/extra.js
@@ -552,6 +552,10 @@ export function finishView (view) {
} catch (err) {
console.warn(err)
}
+ // unescape > symbel inside the style tags
+ view.find('style').each((key, value) => {
+ $(value).html($(value).html().replace(/>/g, '>'))
+ })
// render title
document.title = renderTitle(view)
}