Skip to content

Commit

Permalink
Tweaks.
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.r-project.org/R/trunk@84762 00db46b3-68df-0310-9c12-caf00c1e9a41
  • Loading branch information
hornik committed Jul 27, 2023
1 parent 28fc951 commit eb8a603
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/library/tools/R/toHTML.R
Original file line number Diff line number Diff line change
Expand Up @@ -326,9 +326,9 @@ function(x, header = TRUE, ...)
## (octal \000 to \037 and \177 to \237).
## Replace these by hex bytes.
s <- .replace_chars_by_hex_subs(s, invalid_HTML_chars_re)
s <- gsub("&", "&amp;", s, fixed = TRUE)
s <- gsub("<", "&lt;", s, fixed = TRUE)
s <- gsub(">", "&gt;", s, fixed = TRUE)
s <- fsub("&", "&amp;", s)
s <- fsub("<", "&lt;", s)
s <- fsub(">", "&gt;", s)
if(a) {
## Some people have <http://something> as recommended for
## in-text URLs.
Expand Down

0 comments on commit eb8a603

Please sign in to comment.