Skip to content

Invalid type rendering for <script type="application/ld+json"> renders as type="application/ld&#x2B;json" #61718

@sonnemaf

Description

@sonnemaf

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

In an ASP.NET Core MVC app on .NET 9 the script tag type invalid renderers a backslash+

  <script type="application/ld+json">
      {}
  </script>

Is rendered as

<script type="application/ld&#x2B;json">
  {}
</script>

See screenshot below.

Image

It works correct on NET8

Expected Behavior

No response

Steps To Reproduce

This should be the output

  <script type="application/ld+json">
      {}
  </script>

Exceptions (if any)

No response

.NET Version

No response

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-mvcIncludes: MVC, Actions and Controllers, Localization, CORS, most templates

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions