Quote-delineated Tag Sets
Join the DZone community and get the full member experience.Join For Free
snippet to surround a tag with â€œsmart quotesâ€ if it contains any odd characters. i.e. to display tags entered in a flickr-like style (space separated except inside quotes)
tag.gsub(/^/,'“').gsub(/$/,'”') if tag.match(/[^A-Za-z0-9\-_.]/)
Opinions expressed by DZone contributors are their own.