Skip to content

Commit

Permalink
Fix newline character issue
Browse files Browse the repository at this point in the history
  • Loading branch information
abhishalya committed Oct 29, 2020
1 parent 109a855 commit 6cae6cd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Utilities/DOM.jl
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,9 @@ function escapehtml(text::AbstractString)
char === '"' ? write(buffer, """) : write(buffer, char)
end
String(take!(buffer))
end
if occursin("\n", text)
replace(text, "\n"=>"
")
else
text
end
Expand Down

0 comments on commit 6cae6cd

Please sign in to comment.