Unicode aware string truncation that given a max byte size will truncate the string to or just below that size
A jQuery plugin for getting, setting and replacing the selected text in input fields and textareas.
Return the part of a string before a specified substring.
Return the part of a string after a specified substring.