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

Give items already with HTML #20

Open
saveriopugliese79 opened this issue Aug 7, 2023 · 0 comments
Open

Give items already with HTML #20

saveriopugliese79 opened this issue Aug 7, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@saveriopugliese79
Copy link

Hi, this component is wonderful and gives lot of possibilities with its customizations.
I have no real problem using it, but I think it misses something, that is to say the possibility to send the item already with html tags.

I explain better with an example.
I have the list of items that is composed by the shopName in the first row, and the shopAddress in the second.
BOTH info should be searchable and highlighted when matched (and this works fine).

The problem is that i want to show this two data in two lines with shopName in bold.
So, if the "item" is "McDonalds - One Street, 10001, NY" there is no problem at all.
But if item given to component is "McDonands
One Street, 10001, NY
it prints the html tags escaped (i added console log in the component):
<strong>McDonands</strong><br/>One Street, 10001, NY

Is there a way to achieve this?
I know that i can split the two info, and use scoped slot to render them, but this way address would be not searchable and highlighed.

Thanks for any hint.

@drikusroor drikusroor added the enhancement New feature or request label Aug 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants