Could use HTML's contenteditable and dynamically replace strings with HTML elements.
Upon sending the message, replace known span nodes with item definitions (extract from spans attribute tags), verify that all other nodes are text nodes, and construct back a string.
Needs to "decrypt" item owner, if the owner is viewing the item
Could use HTML's contenteditable and dynamically replace strings with HTML elements.
Upon sending the message, replace known span nodes with item definitions (extract from spans attribute tags), verify that all other nodes are text nodes, and construct back a string.
Needs to "decrypt" item owner, if the owner is viewing the item