/** * Performs some basic cleanup of a string for use as a post slug. * * This replicates what `sanitize_title()` does in WordPress core when saving * a post, without the `sanitize_title` filters and the locale-specific * transliterations of `remove_accents()`, so it can only approximate what the * slug will be. It works on decoded characters, while WordPress returns the * slug percent-encoded, and keeps percent-encoded octets as they are. Like * WordPress, it keeps what fits in 200 percent-encoded characters. * * Converts accented letters to basic Latin letters, and strips HTML tags and * entities. Converts spaces, periods, forward slashes, dashes and wide spaces * to hyphens. Strips the punctuation * and invisible characters WordPress strips, and any other ASCII character * that isn't a letter, a number, an underscore or a hyphen. Keeps other * characters, such as letters of other scripts and emoji. Converts the * string to lowercase. * * @param string Title or slug to be processed. * * @return Processed string. */ export declare function cleanForSlug(string: string): string; //# sourceMappingURL=clean-for-slug.d.ts.map