forum::format::emoticons (public)
forum::format::emoticons -content content
Defined in packages/forums/tcl/messages-format-procs.tcl
Convert smileys (emoticons) in supplied content into emoji HTML entities.
- Switches:
- -content (required)
- See Also:
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- web_forums_message_and_reply
Source code: set emoticons_map [list] # if you change this list, consider changing # www/doc/emoticons.adp as well set emoticons_map { ":-)" "😊" ";-)" "😉" ":-D" "😃" "8-)" "😎" ":-(" "😟" ";-(" "😢" ":-O" "😱" ":-/" "🤔" } return [string map $emoticons_map $content]XQL Not present: Generic, PostgreSQL, Oracle