removeTags
removeTags: (string) -> stringThe string without its <...> tags; <lt>/<gt> become </>.
| Method | Returns | Description |
|---|---|---|
removeTags(string) | string | The string without its <...> tags; <lt>/<gt> become </>. |
fromCSV(string) | {string} | The comma-separated values, each trimmed, empty ones dropped. |
toCSV({string}) | string | The strings joined by ,. |
toJagexName(string) | string | A player name as Jagex spells it: printable characters, non-breaking spaces as spaces. |
sanitize(string) | string | A player name without tags and with non-breaking spaces as spaces. |
titleCase(any) | string | An enum constant's name as This Format, unless its toString is its own. Takes any enum constant. |
escapeJagex(string) | string | < as <lt>, > as <gt>, a newline as <br>, carriage returns dropped. |
unescapeJagex(string) | string | The inverse of escapeJagex. |
sanitizeMultilineText(string) | string | Multiline widget text as one line: <br> as a space, tags removed. |
standardize(string) | string | Tags removed, lower case, trimmed: for comparing names. |
removeFormattingTags(string) | string | Only the formatting tags removed (<col>, <br>, ...); <img> kept. |
matchesSearchTerms({string}, {string}) | boolean | Whether every term is in, or within a Jaro-Winkler similarity of 0.9 of, some keyword. |
| Field | Type | Description |
|---|---|---|
JAGEX_PRINTABLE_CHAR_MATCHER | CharMatcher | The characters the game's fonts draw (U+0020-U+007E, U+0080, U+00A0-U+00FF), as a CharMatcher: `Text.JAGEX_PRINTABLE_CHAR_MATCHER:retainF… |
removeTagsremoveTags: (string) -> stringThe string without its <...> tags; <lt>/<gt> become </>.
fromCSVfromCSV: (string) -> {string}The comma-separated values, each trimmed, empty ones dropped.
toCSVtoCSV: ({string}) -> stringThe strings joined by ,.
toJagexNametoJagexName: (string) -> stringA player name as Jagex spells it: printable characters, non-breaking spaces as spaces.
sanitizesanitize: (string) -> stringA player name without tags and with non-breaking spaces as spaces.
titleCasetitleCase: (any) -> stringAn enum constant's name as This Format, unless its toString is its own. Takes any enum constant.
escapeJagexescapeJagex: (string) -> string< as <lt>, > as <gt>, a newline as <br>, carriage returns dropped.
unescapeJagexunescapeJagex: (string) -> stringThe inverse of escapeJagex.
sanitizeMultilineTextsanitizeMultilineText: (string) -> stringMultiline widget text as one line: <br> as a space, tags removed.
standardizestandardize: (string) -> stringTags removed, lower case, trimmed: for comparing names.
removeFormattingTagsremoveFormattingTags: (string) -> stringOnly the formatting tags removed (<col>, <br>, ...); <img> kept.
matchesSearchTermsmatchesSearchTerms: ({string}, {string}) -> booleanWhether every term is in, or within a Jaro-Winkler similarity of 0.9 of, some keyword.
JAGEX_PRINTABLE_CHAR_MATCHERJAGEX_PRINTABLE_CHAR_MATCHER: CharMatcherThe characters the game's fonts draw (U+0020-U+007E, U+0080, U+00A0-U+00FF), as a CharMatcher: Text.JAGEX_PRINTABLE_CHAR_MATCHER:retainFrom(s) keeps only those, as the chat filter does to every message. One instance, the same every read.