Quantcast
Channel: Developer to developer
Viewing all articles
Browse latest Browse all 9076

Issue with rendering of symbols, i.e <, when using PropertyFor

$
0
0

Hi,

when trying to render a property using propertyfor with the value "word <3 word" we get a wierd result. The preview looks good, but on the page it render it as "word <3>", cutting away the rest of the string and adding a ">". 

Below is a snippet of the code

the property

public virtual string Headline { get; set; }

and the propertyfor

@Html.PropertyFor(m => m.Headline, new { CustomTag = "h2", CssClass = "content-block_heading" })

Is there a limitation in how symbol are handled by propertyfor? Or is it something else I have overlooked?


Viewing all articles
Browse latest Browse all 9076

Trending Articles