Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

RenderSection within an html attribute

$
0
0

We are using RC1 and I would like to render a section within an html attribute - this is in a Razor file

<meta name="description" content="@(RenderSection("meta_content_description", true))">

The output in html is as follow:

<meta name="description"
   The space opera series is set in the 31st century, during the waning days of the Terran Empire.  Author: Jesse, Category: Science Fiction
 content="">

As you can see the text for the attribute "Content" is placed before the attribute

This worked in MVC 5, is this a bug? 


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>