Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Highlight-Funktion in Suchergebnissen erzeugt invalides HTML #2555

Open
albirs opened this issue Dec 19, 2024 · 0 comments
Open

Highlight-Funktion in Suchergebnissen erzeugt invalides HTML #2555

albirs opened this issue Dec 19, 2024 · 0 comments
Labels
Milestone

Comments

@albirs
Copy link

albirs commented Dec 19, 2024

Ein Produkt hat den Namen "Test - 100 M"
Über die Suche im Produkt-Filter wird mit "100-m" gesucht (... ?isorc=&keywords=100-m)

Im Quellcode ausgegebener Produktname wird in der Listenansicht wie folgt ausgegeben:

<h3 itemprop="name"><a href="###...link....###" title="Details sehen">Test - <e<em>m</em>>100</e<em>m</em>> <em>M</em></a></h3>

Produkt-Name

es wir die Methode vom Contao benutzt ...

$text = StringUtil::highlight($text, $word, '<em>', '</em>');

Contao 4.13.50 Isotope 2.9.6

@aschempp aschempp added the bug label Jan 8, 2025
@aschempp aschempp added this to the 2.9 milestone Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants