Skip to content

Commit 1eaa297

Browse files
committed
fix html escape error in easybutton example
1 parent cd567ac commit 1eaa297

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

R/plugin-easybutton.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ easyButton <- function(
8080
#' leaf <- leaflet() %>%
8181
#' addTiles() %>%
8282
#' addEasyButton(easyButton(
83-
#' icon = htmltools::span(class = "star", "&starf;"),
83+
#' icon = htmltools::span(class = "star", htmltools::HTML("&starf;")),
8484
#' onClick = JS("function(btn, map){ map.setZoom(1);}")))
8585
#' leaf
8686
#'

man/easyButton.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)