Skip to content

Commit

Permalink
Merge pull request #562 from rstudio/fix-dollar-equation
Browse files Browse the repository at this point in the history
Replace '$' char w/ HTML entity
  • Loading branch information
yjunechoe authored Aug 12, 2024
2 parents 59bb48e + 09cf71e commit 5a00f4b
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions R/get_agent_report.R
Original file line number Diff line number Diff line change
Expand Up @@ -1187,15 +1187,18 @@ get_agent_report <- function(
NA_character_

} else {

text <-
values_i %>%
tidy_gsub(
"~",
"<span style=\"color: purple;\">&marker;</span>"
) %>%
unname()

unname(
tidy_gsub(
values_i,
"~",
"<span style=\"color: purple;\">&marker;</span>"
)
)

text <- gsub("$", "&dollar;", values_i, fixed = TRUE)

text <- paste(text, collapse = ", ")

if (size == "small") {
Expand Down

0 comments on commit 5a00f4b

Please sign in to comment.