clean()

Search
Feedback

Usage

clean(string)

Description
This method can be used to convert complex strings (e.g. user names, article titles, etc.) into simple strings that can be used in URLs etc.

CharactersAction
WhitespaceReplace with-
 –'+/|\`Replace with-
Uppercase lettersReplace with corresponding lowercase letter
<>.?(){}[]!,Remove

Note

Example

${clean('This is an example string')}
${clean('Süperpöwer')}

results in

this-is-an-example-string
superpower

Graph-Browser

About this article
Last change 2017-07-17
Topics FrontendFunctionsStructr 2.0