You need to HtmlAttribute encode those properties.