Skip to content

Commit

Permalink
bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
star7th committed Feb 26, 2023
1 parent 70b7433 commit a8888a4
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"Api"
],
"homepage": "https://github.com/star7th/showdoc",
"version": "v3.0.2",
"version": "v3.0.3",
"license": "Apache-2.0",
"authors": [
{
Expand Down
2 changes: 1 addition & 1 deletion web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
'../server/index.php?s=',
// "lang" :'en'
lang: 'zh-cn'
}</script><link href=./static/css/app.a1000bc4907ba585d75f10ae403cbb50.css rel=stylesheet></head><body class=grey-bg><div id=app></div><script type=text/javascript src=./static/js/manifest.3ad1d5771e9b13dbdad2.js></script><script type=text/javascript src=./static/js/vendor.339f5a1f86786a88b9d4.js></script><script type=text/javascript src=./static/js/app.bab3e77472e0d881d5dd.js></script></body></html>
}</script><link href=./static/css/app.a1000bc4907ba585d75f10ae403cbb50.css rel=stylesheet></head><body class=grey-bg><div id=app></div><script type=text/javascript src=./static/js/manifest.3ad1d5771e9b13dbdad2.js></script><script type=text/javascript src=./static/js/vendor.339f5a1f86786a88b9d4.js></script><script type=text/javascript src=./static/js/app.fd2f69d6142ee6a6c3d1.js></script></body></html>

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion web_src/src/models/page.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@
// 定义一个html反转义的函数
const unescapeHTML = str =>
str.replace(
/&amp;|&lt;|&gt;|&#39;|&quot;/g,
/&amp;|&lt;|&gt;|&#39;|&#039;|&quot;/g,
tag =>
({
'&amp;': '&',
'&lt;': '<',
'&gt;': '>',
'&#39;': "'",
'&#039;': "'",
'&quot;': '"'
}[tag] || tag)
)
Expand Down

0 comments on commit a8888a4

Please sign in to comment.