Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author John Havlik

    (@mtekk)

    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.

    Thread Starter contremaitre

    (@contremaitre)

    %title% didn’t work, I still have < em > in my title.

    Plugin Author John Havlik

    (@mtekk)

    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.

    Thread Starter contremaitre

    (@contremaitre)

    Thanks it worked, it removed the < em >.
    So, htitle replaced < em > by &lt ; em &gt ;
    ftitle removed em

    Maybe there is another tag to keep < em > as is, and have the word emphasized ?

    Plugin Author John Havlik

    (@mtekk)

    There is also %fhtitle%, that will allow HTML tags through without any trimming.

    Thread Starter contremaitre

    (@contremaitre)

    I thought there would be a %tag% with HTML tags AND trimming.
    But anyway, %title% is fine for me.
    Thanks !

    Plugin Author John Havlik

    (@mtekk)

    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)

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘<em> in title’ is closed to new replies.