I am trying to put a dictionary inside of bbcode's url
attribute. There does not seem to be any good way of doing this because the closing bracket of the dictionary is treated as the closing bracket for the url
attribute.
This is the code that I use to pass values to a function of RichTextLabel:
var data = {"key": "value", "key2": [{ "key_inner": "value_inner" }] }
rich_text_label.append_bbcode('[url=%s]Item_Name[/url]' % JSON.print(data))
rich_text_label.connect('meta_clicked', self, 'link_clicked')
but in the receiving signal function handler, link_clicked
, I receive this:
{"key": "value", "key2": [{ "key_inner": "value_inner" }
Please let me know if there is another way of sending data about clicked text to a signal.