set_internal, type text and templates/ref

From semantic-mediawiki.org

Hi. I'm using set_internal and one property stores text. All is good for plain text, but when text includes <ref>, templates, etc, the property value is blank (not stored). How can I escape these values?

13:51, 14 August 2015