Skip to content

Commit

Permalink
Fix tag replacement order in XML
Browse files Browse the repository at this point in the history
  • Loading branch information
mliezun committed Jan 10, 2024
1 parent 58650d0 commit 9a0e0d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/feed.gr
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,7 @@ fn generate_feed(posts) {
let text = renderer.render([content])
let replacements = {
"<>": "&lt;&gt;",
"< ": "&lt; ",
"<=": "&lt;=",
" >": " &gt;",
">=": "&gt;=",
"\">\"": "\"&gt;\"",
"\">=\"": "\"&gt;=\"",
Expand All @@ -56,6 +54,8 @@ fn generate_feed(posts) {
"<-": "-&lt;",
"<<": "&lt;&lt;",
">>": "&gt;&gt;",
" >": " &gt;",
"< ": "&lt; ",
}
for r, n in replacements {
text = u.replace(text, r, n)
Expand Down

0 comments on commit 9a0e0d8

Please sign in to comment.