attr

Cite.util. attr

Deprecated:
Source:

Methods

(protected, static) getAttributedEntry(string, name, value) → {String}

Add data-* attribute to a HTML string

Source:
Parameters:
Name Type Description
string String

HTML string

name String

attribute name

value String

attribute value

Returns:
Type:
String

HTML string with attribute

(protected, static) getPrefixedEntry(value, id) → {String}

Add CSL identifiers to entry

Source:
Parameters:
Name Type Description
value String

HTML string

id String | Number

ID

Returns:
Type:
String

HTML string with CSL ID

(protected, static) getWrappedEntry(value, source, wrapping) → {String}

Pre/append things to entry

Source:
Parameters:
Name Type Description
value String

HTML string

source CSL

source element

wrapping Object

append / prepend configuration

Name Type Attributes Description
prepend String | Cite~wrapper <optional>
append String | Cite~wrapper <optional>
Returns:
Type:
String

Wrapped HTML string