strip_surrounding_quotes: Strip surrounding quote characters from entity labels

View source: R/utils.R

strip_surrounding_quotesR Documentation

Strip surrounding quote characters from entity labels

Description

Removes leading/trailing double-quote characters (straight ⁠"⁠, the CSV doubled "", and curly quotes) plus surrounding whitespace, so quoted values such as "Alice" or ⁠""Bob""⁠ become Alice / Bob. Quotes inside a label (e.g. an apostrophe in ⁠O'Brien⁠) are left untouched.

Usage

strip_surrounding_quotes(x)

Arguments

x

Character vector.

Value

Character vector with surrounding quotes/whitespace removed.


bibnets documentation built on June 19, 2026, 1:06 a.m.