Re: Escaping { in custom module code
Hi haleystudio!
You are right, Flexy thinks that {publisher: } is a call of method getPublisher() and that is why omits everything after ':' character.
You can work around this problem if you add method like getShareCode() into your PHP class. This method would return the needed JS code. Then, you should call {getShareCode()} in your template and the JS code will be properly added there.
Tony.
|