You may want to use the %title% tag rather than %htitle% in your breadcrumb templates (see the Breadcrumb NavXT settings). If you are going to limit the title length with titles that have HTML tags in them this will give you the most consistent experience.
%title% didn’t work, I still have < em > in my title.
Ok, could you try %ftitle% then, it should avoid the trim function, which may still be causing the issue in %title%. If that fixes it, I think I have some tweaking to do to the trim function.
Thanks it worked, it removed the < em >.
So, htitle replaced < em > by < ; em > ;
ftitle removed em
Maybe there is another tag to keep < em > as is, and have the word emphasized ?
There is also %fhtitle%, that will allow HTML tags through without any trimming.
I thought there would be a %tag% with HTML tags AND trimming.
But anyway, %title% is fine for me.
Thanks !
Technically, %title% allows HTML tags and trimming, but it appears you are seeing a bug in bcn_breadcrumb::trim() (I will have to verify this, haven’t had time yet but I plan to look into it this week).
It should be noted that care needs to be taken when trimming with HTML tags as the trim function may cause invalid HTML (cut with a tag still open)