ProcessHannaCode
ProcessHannaCode copied to clipboard
HannaCode removes internal trailing quote in attribute string
In a php HannaCode, a trailing quote in an attribute is removed in the corresponding php variable
Example: if called with[[video_element source="some_url" options="preload='none'"]]
, $options
has value preload='none
But if I had a trailing space: [[video_element source="some_url" options="preload='none' "]]
, then $options
has the expected value preload='none'
This looks like a php trim issue...
Version: HannaCode 0.1.9, ProcessWire 2.5.3
I just noticed the same issue. Single quotes/apostrophes at the start or end of an attribute value are removed. Perhaps a regex issue in getAttributes().