Replies: 1 comment 12 replies
-
hey @pwhe23, sorry for the late reply. The escaped characters are probably getting converted back to proper HTML by our in-memory representation of a DOM (the AngleSharp library). You can access the raw markup via the E.g.:
|
Beta Was this translation helpful? Give feedback.
12 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I would like to test that some of my components properly escape HTML input when rendered. For example, if a button has a parameter with the value
<b>Message</b>
we want to ensure what is rendered is<b>Message</b>
. I can manually see it works by looking in the browser, but my bUnit tests do not show the markup as properly escaped. An example is below.Is there any way to test whether the content is properly escaped? (The reason we are adding these tests is that some developers have snuck in
MarkupString
to stop the escaping a couple of times and we want to make sure it doesn't happen again :)Beta Was this translation helpful? Give feedback.
All reactions