Is there a way, to replace a tag in html content with a component? #9826
Unanswered
LubosAngus
asked this question in
Help/Questions
Replies: 1 comment
-
Maybe you can create a v-node from the markup that you get from the source. So, you'd check if the current iteration is having an I imagine in that way and sounds possible, not sure if you tried? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there,
I'm currently struggling with task, where I have to replace a tag inside of a HTML string with a component. Gallery to be precise.
For example. I've got a HTML from trusted source, where I need to be able to replace gallery tag, with a component and use items, that are in the data-items attribute.
Unfortunately, there is no way for me to change how the data is coming to us, so that's all I can work with.
I tried it with using jsx syntax, I got it just to the point, where I basically got HTML of an gallery, with styles, but it was not interactive. I couldn't open lightbox.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions