ProcessHannaCode icon indicating copy to clipboard operation
ProcessHannaCode copied to clipboard

HannaCode removes internal trailing quote in attribute string

Open jlj opened this issue 10 years ago • 1 comments

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

jlj avatar Oct 21 '14 09:10 jlj

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().

Toutouwai avatar Dec 08 '16 08:12 Toutouwai