mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-30 07:28:53 +01:00
unicode chat handling
This commit is contained in:
@@ -255,6 +255,10 @@
|
||||
/proc/capitalize(var/t as text)
|
||||
return uppertext(copytext(t, 1, 2)) + copytext(t, 2)
|
||||
|
||||
//Returns a unicode string with the first element of the string capitalized.
|
||||
/proc/capitalize_utf(var/t as text)
|
||||
return uppertext(copytext_char(t, 1, 2)) + copytext_char(t, 2)
|
||||
|
||||
//This proc strips html properly, remove < > and all text between
|
||||
//for complete text sanitizing should be used sanitize()
|
||||
/proc/strip_html_properly(var/input)
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
return
|
||||
|
||||
if(iteration_count == 1)
|
||||
piece = capitalize(piece)
|
||||
piece = capitalize_utf(piece)
|
||||
|
||||
if(always_stars)
|
||||
piece = stars(piece)
|
||||
|
||||
Reference in New Issue
Block a user