1

I created a chart by using CedarCharts in a separate .html file and after that I placed this file in my ASP.NET project's .cshtml file. But some libraries are used for this chart and it uses the @ symbol and my .cshtml file considers it as an mistake/error.

These are some libraries

<script src="https://unpkg.com/@esri/arcgis-rest-request"></script>
<script src="https://unpkg.com/@esri/arcgis-rest-feature-service"></script>

How can I remove error on @ from my razor .cshtml file.

This is expected output.

Dale K
  • 25,246
  • 15
  • 42
  • 71
Irtiza
  • 35
  • 10

1 Answers1

1

You can do this in two ways

@Html.Raw("<script src='https://unpkg.com/@esri/arcgis-rest-request'></script>")

or

<script src='https://unpkg.com/@("@esri")/arcgis-rest-request'></script>
Beingnin
  • 2,288
  • 1
  • 21
  • 37