I'm using kendo Telerik.UI.for.AspNet.Mvc5 version 2016.2.607 in .net 452
inside one of my templates i have a reference to a localization string, like this:
<
script
type
=
"text/x-kendo-tmpl"
id
=
"msgTemplate"
>
<
div
class
=
"media"
>
<
a
class
=
"pull-left"
href
=
"#=RelevantURL#"
target
=
"_blank"
title
=
"@CoBRALocalization.MVC.RootResource.ClickToAccess"
>
<
img
src
=
"@Url.Content("
~/Content/images/incAlert.png")?
h
=
30
&
mode
=
max
"
alt
=
"Active"
/>
</
a
>
<
div
class
=
"media-body"
>
<
div
class
=
"media-heading"
>
<
small
><
time
datetime
=
"#=UnixDateCreated#"
>#= kendo.toString(DateCreated, 'G') #</
time
></
small
>
</
div
>
<
p
>#=FriendlyMessage#</
p
>
</
div
>
</
div
>
</
sc
ript
>
look at the @CoBRALocalization.MVC.RootResource.ClickToAccess reference. works fine if the localization value is in english or something like that, but trying a turkish value like
Erişim'i tıklatın
will give me an error saying the template is invalid, and the title looks like:
title="Erişim'i tıklatın"
clearly the hashtag is causing the problem, but i can't find a way around that. Solutions like
http://www.telerik.com/forums/escaping-with-new-syntax
don't really fit this case. Any other ideas?