Jefferson
Jefferson

Reputation: 93

Html Encode getting double Encode

I am calling @Html.Encode to encode the < sign but my output is &amp;lt; should I be calling the Html.Encode method to clean the string?

Code

<span>@Html.Encode(indication.Sentence.CompiledTextTitleCase)</span>

enter image description here

Upvotes: 0

Views: 66

Answers (1)

ScareCrow
ScareCrow

Reputation: 525

For displaying the "Ph-negative Adolescent and Young Adult or Ph-negative Adult: Age < 60 years" you have to simply provide

<span>@indication.Sentence.CompiledTextTitleCase</span>

result

Upvotes: 1

Related Questions