It's just a kind a glue. Dried glue that is, gets sticky again when moistened. Usually some type of geletin and sugar/syrup mixture for the non-toxic effect.
Here's some receipes for making your own if you get tired of the mass produced stuff.
We Value Quality
• Topics based on mainstream science
• Proper English grammar and spelling We Value Civility
• Positive and compassionate attitudes
• Patience while debating We Value Productivity
• Disciplined to remain on-topic
• Recognition of own weaknesses
• Solo and co-op problem solving