Strange extra <span></span> tags in breadcrumbs pathway

Phoca Gallery - image gallery extension
misxa
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 16 Sep 2008, 10:30

Strange extra <span></span> tags in breadcrumbs pathway

Post by misxa »

I noticed strange extra <span></span> tags in breadcrumbs pathway, around title which stands for Phoca Gallery Category List...

"Life" Clinic - <span>Photo gallery</span>

If I display only one specific category, the pathway is correct.

Help!!!
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49279
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Strange extra <span></span> tags in breadcrumbs pathway

Post by Jan »

??? plase let me know your site with this code...
If you find Phoca extensions useful, please support the project
misxa
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 16 Sep 2008, 10:30

Re: Strange extra <span></span> tags in breadcrumbs pathway

Post by misxa »

The website is under development, only localy.
I create menu link: Phoca Gallery Category List Layout

I get this strange problem:

Image

Notice <span></span> tags around menu item title?!
misxa
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 16 Sep 2008, 10:30

Re: Strange extra <span></span> tags in breadcrumbs pathway

Post by misxa »

For some reason, breadcrumbs module gets menu item title wrapped in <span></span> tags. I don't know why this happens for category list type of menu item for Phoca gallery.

I changed:

Code: Select all

modules\mod_breadcrumbs\helper.php
Line 30:

Code: Select all

$items[$i]->name = stripslashes(htmlspecialchars($items[$i]->name));
into:

Code: Select all

$items[$i]->name = stripslashes(htmlspecialchars(strip_tags($items[$i]->name)));
Not an elegant solution, but works nevertheless.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49279
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Strange extra <span></span> tags in breadcrumbs pathway

Post by Jan »

??? no idea where the span is comming from ? :idea:
If you find Phoca extensions useful, please support the project
Post Reply