For example, if "co-publications" should be possible to find on a HTML page using Ctrl-F, a non-breaking hyphen (longer dash) HTML entity might not be ideal.

nowrap_html(x)

Arguments

x

the string to modify

Details

Wrapping the string "co-publication" in a span with the CSS style 'white-space:nowrap;' might be more convenient for the end user.

Examples

nowrap_html("Swedish non-university co-publications")
#> [1] "Swedish <span style='white-space: nowrap;'>non-university</span> <span style='white-space: nowrap;'>co-publications</span>"