@@ -583,8 +583,9 @@ // Figure out if we have a single or double quote and look for the matching closing quote // Closing quote should be "/>, ">, ", or " at the end of the string + // Support for plugins also } and ] are added. $quote = substr($matches[0][0], -1); - $pregMatch = ($quote == '"') ? '#(\"\s*/\s*>|\"\s*>|\"\s+|\"$)#' : "#(\'\s*/\s*>|\'\s*>|\'\s+|\'$)#"; + $pregMatch = ($quote == '"') ? '#(\"\s*/\s*>|\"\s*>|\"\s+|\"$|\"[}|\]]|\"\s*[}|\]])#' : '#(\'\s*/\s*>|\'\s*>|\'\s+|\'$|\'[}|\]]|\'\s*[}|\]])#'; // get the portion after attribute value if (preg_match($pregMatch, substr($remainder, $nextBefore), $matches, PREG_OFFSET_CAPTURE)) {