API Docs for:
Show:

pTag Class

Defined in: application.js:394

The pTag object exposes functions to manage media tag information.

Item Index

Methods

Methods

format

(
  • tag
  • p
  • t
)

Defined in application.js:405

Formats a tag string by capitalizing words.

Parameters:

  • tag String

    The tag to format.

  • p Int

    The parsing position within the whole tag (when the function is called recursively internally).

  • t String

    The array of words within the whole tag (when the function is called recursively internally).

parse

(
  • tags
  • [sep='|']
)

Defined in application.js:435

Parses a list of tag names separated by an optional separator.

Parameters:

  • tags String

    The string to parse.

  • [sep='|'] String optional

    The separator.

Returns:

An array of tag names, all in lowercase, with each name trimmed (only non-empty tag names are returned).