Copied to clipboard

Flag this post as spam?

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


  • Ian Christman 13 posts 83 karma points
    Nov 02, 2018 @ 13:19
    Ian Christman
    0

    @Model.MacroParameters render issue

    I'm entering "< PREVIOUS>" into the paramenter and I get "& PREVIOUS>" on my button. Please help.

    @Model.MacroParameters["buttonName1"]

  • Dan Diplo 1505 posts 5911 karma points MVP 4x c-trib
    Nov 02, 2018 @ 13:26
    Dan Diplo
    100

    That's because < and > are special characters in HTML and thus get encoded as character references by default.

    You can output the raw HTML like this:

    @Html.Raw(Model.MacroParameters["buttonName1"])
    
  • Ian Christman 13 posts 83 karma points
    Nov 02, 2018 @ 17:48
    Ian Christman
    0

    Awesome! That did the trick. Thanks Dan

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies