pTag Class
The pTag object exposes functions to manage media tag information.
Methods
format
(
-
tag
-
p
-
t
Formats a tag string by capitalizing words.
Parameters:
-
tag
StringThe tag to format.
-
p
IntThe parsing position within the whole tag (when the function is called recursively internally).
-
t
StringThe array of words within the whole tag (when the function is called recursively internally).
parse
(
-
tags
-
[sep='|']
Parses a list of tag names separated by an optional separator.
Parameters:
-
tags
StringThe string to parse.
-
[sep='|']
String optionalThe separator.
Returns:
An array of tag names, all in lowercase, with each name trimmed (only non-empty tag names are returned).