I am making an application regarding holiday requests. The frontpage of the app looks as follows:
As you can see in the bottom right there is a column called "Accepted?" which either shows "OK" or "DENIED" in a corresponding color. When I would accept the request it will show the following:
As you can see the CSS is pasted without actually formatting the text within. This does not happen when I run the application locally, only on the server. Once I reload the page it will show correctly again:
What exactly causes this issue? Is there a way to solve it?
If you're using renderTable
try adding sanitize.text.function
to it
output$table1<- renderTable({
data()
}, sanitize.text.function = function(x) x)