added return lines parsing
This commit is contained in:
parent
31cd662db9
commit
a9a2fad375
1 changed files with 4 additions and 0 deletions
|
@ -33,6 +33,10 @@ namespace BirdsiteLive.Domain.Tools
|
|||
var tags = new List<Tag>();
|
||||
messageContent = $" {messageContent} ";
|
||||
|
||||
// Replace return lines
|
||||
messageContent = Regex.Replace(messageContent, @"\r\n\r\n?|\n\n", "</p><p>");
|
||||
messageContent = Regex.Replace(messageContent, @"\r\n?|\n", "<br/>");
|
||||
|
||||
// Extract Urls
|
||||
var urlMatch = _urlRegex.Matches(messageContent);
|
||||
foreach (var m in urlMatch)
|
||||
|
|
Reference in a new issue