mirror of
https://github.com/alexmickelson/canvasManagement.git
synced 2026-03-25 23:28:33 -06:00
fixed self closing tag issue
This commit is contained in:
@@ -79,7 +79,8 @@ public static partial class AssignmentSyncronizationExtensions
|
||||
|
||||
var localHtmlDescription = localAssignment
|
||||
.GetDescriptionHtml()
|
||||
.Replace("<hr />", "<hr>")
|
||||
.Replace("<hr />", "<hr>") // self closing tags are hard
|
||||
.Replace("<br />", "<br>")
|
||||
.Replace(">", "")
|
||||
.Replace("<", "")
|
||||
.Replace(">", "")
|
||||
@@ -94,6 +95,7 @@ public static partial class AssignmentSyncronizationExtensions
|
||||
canvasHtmlDescription = CanvasLinkTagRegex().Replace(canvasHtmlDescription, "");
|
||||
canvasHtmlDescription = canvasHtmlDescription
|
||||
.Replace("<hr />", "<hr>")
|
||||
.Replace("<br />", "<br>")
|
||||
.Replace(">", "")
|
||||
.Replace("<", "")
|
||||
.Replace(">", "")
|
||||
|
||||
@@ -47,7 +47,13 @@ public record LocalAssignment
|
||||
public DateTime? LockAt { get; init; }
|
||||
public DateTime DueAt { get; init; }
|
||||
public string? LocalAssignmentGroupId { get; init; }
|
||||
public int PointsPossible { get; init; }
|
||||
public int PointsPossible
|
||||
{
|
||||
get
|
||||
{
|
||||
return Rubric.Sum(r => r.IsExtraCredit ? 0 : r.Points);
|
||||
}
|
||||
}
|
||||
public IEnumerable<string> SubmissionTypes { get; init; } = Array.Empty<string>();
|
||||
|
||||
public string GetRubricHtml()
|
||||
|
||||
Reference in New Issue
Block a user