Skip to content

Commit 390ad60

Browse files
committed
deprecate the internal escape_html() function
1 parent bfaca14 commit 390ad60

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

R/utils.R

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -686,8 +686,10 @@ escape_latex = function(x, newlines = FALSE, spaces = FALSE) {
686686
x
687687
}
688688

689-
# TODO: remove this after https://github.com/mgondan/mathml/pull/18
690-
escape_html = xfun::html_escape
689+
escape_html = function(x) {
690+
.Deprecated('xfun::html_escape()', old = 'knitr:::escape_html()')
691+
xfun::html_escape(x)
692+
}
691693

692694
split_lines = function(x) xfun::split_lines(x)
693695

0 commit comments

Comments
 (0)