fixed self closing tag issue

This commit is contained in:
2023-10-24 15:43:17 -06:00
parent c2f916f2c3
commit 860c387c8d
3 changed files with 29 additions and 2 deletions

View File

@@ -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("&gt;", "")
.Replace("&lt;", "")
.Replace(">", "")
@@ -94,6 +95,7 @@ public static partial class AssignmentSyncronizationExtensions
canvasHtmlDescription = CanvasLinkTagRegex().Replace(canvasHtmlDescription, "");
canvasHtmlDescription = canvasHtmlDescription
.Replace("<hr />", "<hr>")
.Replace("<br />", "<br>")
.Replace("&gt;", "")
.Replace("&lt;", "")
.Replace(">", "")

View File

@@ -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()

View File

@@ -17,3 +17,22 @@ Apparently the VSCode razor extension was compiled with a preview of dotnet 6...
The issue can be tracked [here](https://github.com/dotnet/razor/issues/6241)
pOpenID Connect is sometimes abbreviated to OIDC. It is not a synonym to Oauth2.0/p
pRead and watch the video in this article a href=https://developer.okta.com/blog/2019/10/21/illustrated-guide-to-oauth-and-oidchttps://developer.okta.com/blog/2019/10/21/illustrated-guide-to-oauth-and-oidc/abr
Read this article: a href=https://curity.io/resources/learn/openid-connect-overview/https://curity.io/resources/learn/openid-connect-overview//abr
Watch this video: a href=https://www.youtube.com/watch?v=rTzlF-U9Y6Yhttps://www.youtube.com/watch?v=rTzlF-U9Y6Y/a/p
pSubmit your answers to these questions:/p
ol
liWhat problem is Oauth 2.0 trying to solve?/li
liWhat is the difference between oauth and openid connect?/li
liWhat problem is OIDC trying to solve?/li
liWhat resources does the client get from the authentication server after a OIDC flow?/li
/ol
hrh1Rubric/h1precode class=language-json[
{label: Answered 4 questions, points: 8}
]/code/pre