commit | 5e4dd507b65516399f392b596819172f51d0c467 | [log] [tgz] |
---|---|---|
author | Hao Zhu <haozhu233@gmail.com> | Thu Apr 05 12:01:58 2018 -0400 |
committer | Hao Zhu <haozhu233@gmail.com> | Thu Apr 05 12:01:58 2018 -0400 |
tree | 4adbe6483e6d4e1d944d91c3e9e2c966f1fc34cc | |
parent | 904c0dc36a6e43cef2bc121fde55988c6beaae5d [diff] [blame] |
Add acknowledgement & bump version for CRAN release
diff --git a/R/from_knitr.R b/R/from_knitr.R index 205148d..b7d7a47 100644 --- a/R/from_knitr.R +++ b/R/from_knitr.R
@@ -25,10 +25,12 @@ # escape special HTML characters # @author Yihui Xie +# Added conversion escape_html <- function(x) { x = gsub('&', '&', x) x = gsub('<', '<', x) x = gsub('>', '>', x) x = gsub('"', '"', x) + x = gsub('\n', '<br />', x) x }