In an ASP.NET MVC application I am working on, <text> tags are being used in a .cshtml file.
Example –
<text>some text</text>
What functionality do they provide? I can not find any reference to them on the interweb 🙂
Thanks!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The are kinda the opposite of the @ tags…
Standard in views you are in “HTML-mode”, you can then use a Razor-block like this:
Razor will detect HTML-tags in a razor block and render that but sometimes you just need to show the literal text. That’s where the tag comes in… It switches back to HTML-mode without using an actual HTML-tag…
So some text will render that exact text (WITHOUT the tag>) in your view:
Convaluted example, but this code:
Will render “You have no items” or “you have 5 items” for example…