Skip to content

Commit

Permalink
fix: replace <br> with \n
Browse files Browse the repository at this point in the history
  • Loading branch information
dermitzos committed Apr 27, 2024
1 parent 08a0900 commit 167f91b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions addons/arcweave/Interpreter/Utils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ public static string CleanString(string s)
s = s.Replace("<em>", "{italic}").Replace("</em>", "{/italic}");
s = s.Replace("&lt;", string.Empty).Replace("&gt;", string.Empty);
s = s.Replace("</p>", "\n\n");
s = s.Replace("<br>", "\n");
s = s.Replace("<code>", "{code}");
s = s.Replace("</code>", "{/code}");
s = System.Text.RegularExpressions.Regex.Replace(s, @"<[^>]*>", string.Empty);
Expand Down

0 comments on commit 167f91b

Please sign in to comment.