Merge branch 'live' into main

pull/24194/head
Rick Anderson 2021-12-03 13:13:45 -10:00 committed by GitHub
commit 4c3fb66685
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 5 deletions

View File

@ -138,17 +138,15 @@ C# expressions that evaluate to a string are HTML encoded. C# expressions that e
@("<span>Hello World</span>")
```
The code renders the following HTML:
The preceding code renders the following HTML:
```html
&lt;span&gt;Hello World&lt;/span&gt;
```
The HTML is shown in the browser as:
The HTML is shown in the browser as plain text:
```html
<span>Hello World</span>
```
&lt;span&gt;Hello World&lt;/span&gt;
`HtmlHelper.Raw` output isn't encoded but rendered as HTML markup.