Learn R Programming

spork (version 0.3.5)

htmlToken: Process Html Token

Description

Pre-processes a html token not recognized as spork. Escapes the common names for Greek letters and escapes html metacharacters.

Usage

htmlToken(
  x,
  token_open = getOption("html_token_open", ""),
  token_close = getOption("html_token_close", ""),
  math_open = getOption("html_math_open", ""),
  math_close = getOption("html_math_close", ""),
  label_open = getOption("html_label_open", ""),
  label_close = getOption("html_label_close", ""),
  ...
)

Value

html

Arguments

x

character

token_open, token_close

these wrap the entire token (used once); by default the token is text-like

math_open, math_close

these wrap math-like portions of the token; the defaults try to give upright characters (non-italic) which may not work for Greek symbols

label_open, label_close

these re-wrap math-like portions of the token

...

ignored arguments

See Also

Other html: [.html(), [[.html(), as_html(), as_html.greek(), as_html.spar(), as_html.spork(), html2xml()

Other interface: as.expression.plotmath(), as_html.spar(), as_html.spork(), as_latex.spar(), as_latex.spork(), as_plotmath.spar(), as_plotmath.spork(), as_previews.spork(), as_spork.character(), latexToken(), plotmathToken()

Examples

Run this code
htmlToken('foo')
htmlToken('alpha')
htmlToken('Alpha')

Run the code above in your browser using DataLab