lua.wetgenes.gamecake.fun.chatdown.chats.replace_tags
output = chats:replace_tags(input,subject_name)
Tags in the input text can be wrapped in {tag_name} and will be replaced with the appropriate tag_value. This is done recursively so tag_values can contain references to other tags. If a tag does not exist then it will not expand and {tag_name} will remain in the output text.
Again if any tag name does not contain an explicit root then subject_name will be used as the default chat subject.