Copied to clipboard

Flag this post as spam?

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


  • Jonas 123 posts 206 karma points
    Jun 19, 2014 @ 14:09
    Jonas
    0

    @f.CssClass with special character mess upp CSS.

    My clients are entering Swedish characters on fields and this end up in the CSS class markup.

    How can I change this ?

  • Jan Skovgaard 11258 posts 23500 karma points MVP 7x admin c-trib
    Jun 20, 2014 @ 17:43
    Jan Skovgaard
    0

    Hi Jonas

    You should be able to tweak the code as documented here http://our.umbraco.org/projects/umbraco-pro/contour/documentation/Developer/Custom-Markup/

    So you could probably add something like this

    @f.CssClass.Replace("ä","a").Replace("ö","o")
    

    Hope this helps.

    /Jan

  • 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