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

Provide option to escape html #101

Open
pionpi opened this issue Jun 8, 2019 · 3 comments
Open

Provide option to escape html #101

pionpi opened this issue Jun 8, 2019 · 3 comments

Comments

@pionpi
Copy link

pionpi commented Jun 8, 2019

R packages that can be used in Shiny typically provide simple methods of escaping html. For example, in rHandsonTable, kable, rFullCalendar you simply set a escape flag to true or false. Please provide an option to escape html in rPivotTable.
Thank you.

Example:

df <- data.frame(Col1 = c("<b>Cat</b>","Dog","<b>Ferret</b>"), Col2 = c(1,2,3), Col3 = c("a","b","b"))

rpivotTable(df,rows = c("Col2"),cols = c("Col3"),vals = "Col1",aggregatorName = "Last",rendererName = "Table")

@nicolaskruchten
Copy link
Collaborator

The underlying Javascript library doesn’t allow this, so the htmlwidget will not be able to do much here.

@pionpi
Copy link
Author

pionpi commented Jun 9, 2019

The underlying Javascript library doesn’t allow this, so the htmlwidget will not be able to do much here.

Thank you for a quick response. Are there any workarounds?

@nicolaskruchten
Copy link
Collaborator

The HTML output is reasonably clean and well-annotated with CSS classes so you may be able to use CSS to style certain parts of the table.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants