Functions to read and manipulate string variables.
Create a random guid.
Create a random guid in base64 RFC7515 format.
A utility function that takes a single input, converts it to a string, processes it through the MD5 hashing algorithm, and returns the hash…
A utility function that takes a single input, converts it to a string, processes it through the SHA256 hashing algorithm, and returns the…
Template literals are strings that can cross multiple lines and easily bind in values through single JS expressions inside the string. The…
Converts a byte array to a string using the specified encoding.
Converts a string into bytes using the specified encoding.
Converts multi line plain text to HTML.
Encode a filename by replacing characters not allowed in filenames with their ASCII code representations. Reverse function of…
Decode an encoded filename string by replacing ASCII code representations with symbols (not allowed in filenames). Reverse function of…
Encodes a URI by replacing certain characters by escape sequences representing the UTF-8 encoding of the characters.
Encodes a URI component by replacing certain characters with escape sequences representing the UTF-8 encoding. Unlike encodeURI, it also…
The HtmlAttributeEncode method encodes characters appropriate for insertion into an HTML attribute value.
Converts a string into an HTML-encoded string.
Remove all empty lines (if any) from a string.
Combines multiple strings into one string. Function may be called with one or a "whole bunch" of strings in as parameters.
The includes() method returns true if a string contains a specified string.
The substring() method returns a part of the string between the start and end indexes, or to the end of the string.
Searches the entire calling string, and returns the index of the first occurrence of the specified substring.
Searches for the last occurrence of a substring within a string.
Returns the Unicode Normalization Form of the string, allowing comparison of strings that may use different code-point sequences for the…
Repeats a string a specified number times and returns the new value.
Replaces specified text in a specific string with another text.
Splits a single string into an array of strings based on the specified separator.
Searches the end of the string, and returns a boolean that is True if the string ends with this text otherwise False.
Searches the start of the string, and returns a boolean that is True if the string starts with this text otherwise False.
Removes spaces before and after a text in a string.
Removes all tags from a string
Converts a string into a URL-encoded format, replacing unsafe characters with a percent sign followed by two hexadecimal digits…
Converts Markdown-formatted text to HTML.