We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a6f5089 commit 23f6139Copy full SHA for 23f6139
R/response.R
@@ -60,11 +60,22 @@ convert_body <- function(body) {
60
return(as.character(body))
61
62
if(inherits(body, "shiny.tag") || inherits(body, "shiny.tag.list"))
63
- return(htmltools::doRenderTags(body))
+ return(render_htmltools(body))
64
65
body
66
}
67
68
+render_htmltools <- function(x) {
69
+ tmp <- tempfile(fileext = ".html")
70
+ on.exit({
71
+ unlink(tmp)
72
+ })
73
+ save_html(x, tmp)
74
+
75
+ read_lines(tmp) |>
76
+ (\(.) paste0(., collapse = ""))()
77
+}
78
79
#' Construct Response
80
#'
81
#' @noRd
0 commit comments