How to display & raquo; in ajax.actionlink

in ajax.actionlink first argument is "text to display" , which takes a string value, however I would like to display » (which displays a good 'β†’'), however ajax.actionlink displays the literal '& RAQUO; "how can I display a character?

+5
source share
2 answers

An » is U+00BB , so the C # escape is \u00BB .

+12
source

You can use it directly, the HTML helper will automatically encode it: -

 @Ajax.ActionLink("Β« Previous","Test",new AjaxOptions { OnSuccess = "Test" }) @Ajax.ActionLink("Next Β»","Test",new AjaxOptions { OnSuccess = "Test" }) 
+5
source

Source: https://habr.com/ru/post/1208502/


All Articles