Copied to clipboard

Flag this post as spam?

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


  • Misha 3 posts 83 karma points
    Oct 13, 2021 @ 07:35
    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 2141 posts 14344 karma points MVP 8x c-trib
    Oct 17, 2021 @ 17:28
    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 3 posts 83 karma points
    Oct 18, 2021 @ 07:49
    Misha
    0

    Thank you! It Works^_^

Please Sign in or register to post replies

Write your reply to:

Draft