Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Misha 2 posts 82 karma points
    1 week ago
    Misha
    0

    Problem with showing some symbol when using Macros with view

    I add Macros with a view to my project. when I add text with for example Quotation marks! or other similar symbols the editor shows it correctly. But on the web page, it shows as hex text. I don't know how to fix it. It is not related to my fonts I checked it. enter image description here enter image description here enter image description here

  • Marc Goodson 1601 posts 10654 karma points MVP 6x c-trib
    1 week ago
    Marc Goodson
    100

    Hi Misha

    How are you rendering the content in your Macro Partial View?

    eg if you are writing

    @using Umbraco.Web.Models
    @{
    var title = Model.GetParameterValue<string>("title");
    }
    <li>@title</li>
    

    then perhaps changing this to:

       <li>@Html.Raw(title)</li>
    

    will do the job?

    regards

    Marc

  • Misha 2 posts 82 karma points
    1 week ago
    Misha
    0

    Thank you! It Works^_^

Please Sign in or register to post replies

Write your reply to:

Draft