A. I store tags in a database which are user input.
B. For views, a group of these tags are then fetched with a query and concatenated.
C. I iterated this format and print each tag in the view.
For part B I create a JSON array with the concatenation in the query. But now I'm thinking it might be worthwhile to pick an even more lightweight format than JSON. My reasoning is it would make it simpler to validate the user tags coming into the database.
If I were to choose one delimiter, say , to identify tokens would the only validation needed be disallowing this character for tags?
I am thinking of making sandwhiches. Is the only thing not considered a topping bread?I think we need to see a lot more of your proposed implementation. JSON is super lightweight, when done correctly, so you're trading more processing time and logic for saving about six characters.