text/x-kendo-template,the @Html.Raw() cannot be used

2 posts, 0 answers
  1. Yilang
    Yilang avatar
    22 posts
    Member since:
    Jan 2016

    Posted 07 Sep 2016 Link to this post

    In my template,the code like this:

    <script type="text/x-kendo-template" id="template">
        <div id="details-container">
           <div id="div_con">@Html.Raw("#=Content#")</div>

    #=Content# and the result like this:

    &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color:#333333;font-family:SimSun, 'Microsoft YaHei', sans-serif;font-size:16px;line-height:32px;text-indent:32px;">木屑颗粒机是生物质燃料颗粒形成机系例产品中的优质产品代表之一,,它不仅帮助我们解决了一些农村废弃的玉米秸秆、棉花秸秆、稻草秸秆、木糠、木粉、木屑、花生壳、稻壳等这些农作物的外壳面临着存放难的问题。</span><p style="margin-bottom:0px;padding:0px;text-indent:32px;line-height:1.8;color:#333333;font-family:SimSun, 'Microsoft YaHei', sans-serif;font-size:16px;"></p><p style="margin-bottom:0px;padding:0px;text-indent:32px;line-height:1.8;color:#333333;font-family:SimSun, 'Microsoft YaHei', sans-serif;font-size:16px;">对于木屑颗粒机设备本身而言。</p>


    How to resolve it?

  2. Eyup
    Eyup avatar
    3320 posts

    Posted 09 Sep 2016 Link to this post

    Hello Yilang,

    I've already replied to your query in the following thread:

    I suggest that we continue our conversation on the mentioned thread for more efficient correspondence.

    Telerik by Progress
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top