Open thfuchs opened 5 years ago
What if you did something like this:
tags$a("Link with popover", href = "#") %>%
bsplus::bs_embed_popover(
title = "xx",
content = "€",
placement = "bottom",
trigger = "hover focus"
)
same result..
Gah!
I think the problem might be here: https://github.com/ijlyttle/bsplus/blob/18a52cfa1b31c3267416ede453a92d70dbd717e2/R/set_attr.R#L121
I suspect that the c()
function is stripping the HTML class from the character string.
I'll need to think about how to work around this....
Found a workaraound using html="true"
on stackoverflow: https://stackoverflow.com/questions/54424978/bs-embed-popover-html-tags-in-content-variable
tags$a("Link with popover", href = "#") %>%
bsplus::bs_embed_popover(
title = "xx",
content = HTML("€"),
placement = "bottom",
trigger = "hover focus",
html = TRUE
)
Super!
If it's OK with you, I'd like to leave this issue open to remind me to see if this is something that can be coded, or if I should document the workaround.
Of course, Thanks anyway for your package!
Inside content, bs_embed_popover does not render html tags. Here I have a minimal example which just displays the html code for €:
Is there any workaround to render html signs properly?