NEWS
textutils 0.4-2
- add a character method for "toText", which for
named vectors pastes names and values, e.g.
toText(c(NAME = "Lisa"))
becomes
NAME:Lisa
- "HTMLrm" gains an argument "tag.replace", which is
used when replacing tags like 'something' and
'</something>'; default is "", which matches the
current behaviour.
- "toHTML" for data.frames: "col.names" may be a
character vector, just like for "row.names"
- ....
textutils 0.4-1 (2024-04-01)
- new function "HTMLrm", which removes HTML tags
- "toHTML" gains an argument "td.id"; if TRUE,
"td"-elements get id attributes
- the data-frame method of "toHTML" gains an argument
"replace.NA", for automatically replacing NAs
textutils 0.3-2 (2023-04-01)
- minor documentation updates
- there is an additionat git repository at
https://git.sr.ht/~enricoschumann/textutils
textutils 0.3-1
- "HTMLencode" now translates non-breaking spaces into
" ". Before, it used " ", which
is valid but (apparently) less supported.
textutils 0.3-0
- new function "insert", for inserting elements
into a vector
textutils 0.2-2
- "legacy" named character references without a
trailing semicolon, such as ¬ or <, are now
properly handled, for instance
HTMLdecode("¶llel is good") ## "¶llel is good"
HTMLdecode("∥ is good")
All references listed at
https://html.spec.whatwg.org/multipage/named-characters.html#named-character-references
are supported.
textutils 0.2-1 (2021-04-01)
- fix handling of "¬" in 'HTMLdecode' (thanks to
Fangzhou Xie for reporting the error)
- toHTML.data.frame: fix handling of single-row
dataframes
- toHTML.data.frame: new argument 'col.names', with
default TRUE. If FALSE, column names of data frame
are ignored. Also, 'row.names' may now be either
logical (as before) or a string, which is then used
as column name.
- 'toText' gains a method for data frames
textutils 0.2-0 (2020-01-07)
- fix 'here': argument 'trim' was ignored for
character vectors
- function 'HTMLdecode' now also decodes decimal and
hexadecimal character references, controlled by new
arguments 'named', 'hex' and 'decimal'
- function 'HTMLencode' gains an argument
'encode.only', to restrict characters to be encoded
textutils 0.1-11 (2019-05-01)
- fix 'HTMLencode' (thanks to Jacqueline Nolis for
reporting the error); the function also gains
a new argument 'use.iconv'
- new function 'here'
textutils 0.1-10
- 'toHTML.data.frame' gains a new argument 'eol'
textutils 0.1-9 (2018-08-17)
- new function 'fill_in'
- new function 'title_case'
- new function 'TeXencode'
textutils 0.1-8
- new method 'toHTML.data.frame'
textutils 0.1-7
textutils 0.1-6 (2016-12-16)
textutils 0.1-5
- functions 'char2num' and 'expstr' are removed (for
the latter, use 'strexp' instead)
textutils 0.1-4
textutils 0.1-3
- new function 'HTMLdecode'
textutils 0.1-2
- TeXunits: both 'from' and 'to' can be vectors of
length > 1
textutils 0.1-1
textutils 0.1-0
- First release. The main purpose of the package is
to provide generic functions: toHTML and toText.