unicode chat handling

This commit is contained in:
Kashargul
2023-12-19 06:43:44 +01:00
committed by GitHub
parent 6c5c58fe07
commit 8aa79fcf1a
2 changed files with 5 additions and 1 deletions
+4
View File
@@ -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)
+1 -1
View File
@@ -22,7 +22,7 @@
return
if(iteration_count == 1)
piece = capitalize(piece)
piece = capitalize_utf(piece)
if(always_stars)
piece = stars(piece)