I have an output string that's a full url, and I want to highlight different parameters in that url in different colors. I tried a few different approaches of splitting the string up in server.R then trying to join them in ui.R and apply different CSS classes but without success...the link looks like this
http://www.example.com?utm_campaign=[blue text]&utm_source=[red text]
When I try to combine different parts of the URL passed from server.R it creates spaces in the final URL.
Here's some sample code
In server.R
output$val1 <- renderText({"http://www.example.com?utm_campaign="})
output$val2 <- renderText({"[Enter campaign name]"})
in ui.R
p(textOutput("val1"), span(textOutput("val2"), style = "color:blue"), "more text" )
This breaks the outpout in to two lines