Closed gicalle closed 10 years ago
there is another extension method on ActionLinkButton
: .LinkTextAsHtml()
. Using it will make sure your html does not get encoded. maybe I should make this behavior default...
Ok thanks, that will do the trick. I hadn't updated to the latest version, so was unable to find it myself...
Maybe it's a good idea to make it default, because it doesn't interfere with 'plain text'. Everything will work and you're able to put in html from time to time.
hm,
@Html.Bootstrap().ActionLinkButton("please <b'>click</b>", "TEST").LinkTextAsHtml(true)
is generating
<a class="btn btn-default" href="Pass/TEST">please <b>click</b></a>
instead of
<a class="btn btn-default" href="/Pass/TEST">please <b>click</b></a>
Hold on. I was originally fixing this issue for ActionLink
. Must have forgot to apply the same for the ActionLinkButton
this is fixed. Please get latest. Also deprecated LinkTextAsHtml
method. Now this behavior is default.
hello Dmitry, i'm using BMVC V2 for Bootstrap 2.3.2
generates correctly
but how can i generate this, so that a 'badge' is displayed in the button itself?
i've tried
but the text is always converted to html encoded text, thus resulting in this button:
or maybe there is an alternative way to use actionlinks together with badges / custom html?