<span class='highlight'> in result's title in search component

General questions relating to Joomla! 3.x.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting.
Forum Post Assistant - If you are serious about wanting help, you should use this tool to help you post.
Post Reply
User avatar
kiasati
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 164
Joined: Thu May 26, 2016 6:08 am
Contact:

<span class='highlight'> in result's title in search component

Post by kiasati » Sun Dec 31, 2017 6:03 pm

when people search something in my site, in the title of the results found, there is <span class='highlight'>
how can i fix this?

I'm using "com_search" component and the last version of joomla.
Learning never stops...

User avatar
sozzled
Joomla! Exemplar
Joomla! Exemplar
Posts: 7900
Joined: Sun Jul 05, 2009 3:30 am
Location: Canberra, Australia
Contact:

Re: <span class='highlight'> in result's title in search component

Post by sozzled » Sun Dec 31, 2017 7:40 pm

The "simple" search (com_search) component does not highlight the results of searches; the highlighting capability is a smart search component (com_finder) feature.

Go to Smart Search: Options » Highlight Search Terms = No to disable the feature.
https://www.kuneze.com/blog
“If you think I’m wrong then say, ‘I think you’re wrong.’ If you say ‘You’re wrong!’, how do you know?” :)

User avatar
kiasati
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 164
Joined: Thu May 26, 2016 6:08 am
Contact:

Re: <span class='highlight'> in result's title in search component

Post by kiasati » Mon Jan 01, 2018 1:58 pm

sozzled wrote:The "simple" search (com_search) component does not highlight the results of searches; the highlighting capability is a smart search component (com_finder) feature.

Go to Smart Search: Options » Highlight Search Terms = No to disable the feature.
I'm using com_search.. wierd. so where does this highlight comes from and how to fix this?
Learning never stops...

User avatar
kiasati
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 164
Joined: Thu May 26, 2016 6:08 am
Contact:

Re: <span class='highlight'> in result's title in search component

Post by kiasati » Mon Jan 01, 2018 3:14 pm

in code, i changed

Code: Select all

<?php echo $this->escape($result->title);?>
to

Code: Select all

<?php echo $result->title;?>
and problem solved
Learning never stops...

User avatar
muddauber
Joomla! Ace
Joomla! Ace
Posts: 1529
Joined: Thu Jun 08, 2006 11:26 pm

Re: <span class='highlight'> in result's title in search component

Post by muddauber » Mon Jan 01, 2018 10:42 pm

kiasati is this in the core Joomla code? I have the same problem.


Post Reply

Return to “General Questions/New to Joomla! 3.x”