Skip to content

Commit 9576363

Browse files
committed
fix eazybuttonbar example by making the text raw html
1 parent e855a51 commit 9576363

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

R/plugin-easybutton.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,10 +134,10 @@ addEasyButton <- function(
134134
#' addTiles() %>%
135135
#' addEasyButtonBar(
136136
#' easyButton(
137-
#' icon = htmltools::span(class = "star", "&starf;"),
137+
#' icon = htmltools::span(class = "star", htmltools::HTML("&starf;")),
138138
#' onClick = JS("function(btn, map){ alert(\"Button 1\");}")),
139139
#' easyButton(
140-
#' icon = htmltools::span(class = "star", "&target;"),
140+
#' icon = htmltools::span(class = "star", htmltools::HTML("&target;")),
141141
#' onClick = JS("function(btn, map){ alert(\"Button 2\");}")))
142142
#' leaf
143143
#'

man/easyButton.Rd

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)