Sluggify
From UBot Studio
(Difference between revisions)
(Created page with " This function is an Advanced Text function in the UBot Extended Library. This function transforms text into an ascii slug which can be used safely in urls replacing by wh...") |
|||
(One intermediate revision by one user not shown) | |||
Line 1: | Line 1: | ||
− | This function is an [[Advanced Text]] function in the UBot Extended Library. This function transforms text into an ascii slug which can be used safely in urls | + | This function is an [[Advanced Text]] function in the UBot Extended Library. |
+ | |||
+ | This function transforms text into an ascii slug which can be used safely in urls by replacing whitespaces, accentuated and special characters with a dash. Limited set of non-ascii characters are transformed into similar versions in the ascii character set such as ä to a. | ||
+ | |||
'''Text to slugify:''' The text being slugified. | '''Text to slugify:''' The text being slugified. | ||
+ | |||
== Example == | == Example == |
Latest revision as of 12:47, 25 September 2016
This function is an Advanced Text function in the UBot Extended Library.
This function transforms text into an ascii slug which can be used safely in urls by replacing whitespaces, accentuated and special characters with a dash. Limited set of non-ascii characters are transformed into similar versions in the ascii character set such as ä to a.
Text to slugify: The text being slugified.
[edit] Example
alert($slugify("UBot Studio"))
Running the alert command slugifies the value from "UBot Studio" to "ubot-studio"