Index: trunk/extensions/SemanticForms/includes/SF_FormPrinter.inc |
— | — | @@ -172,11 +172,11 @@ |
173 | 173 | $free_text_was_included = false; |
174 | 174 | $free_text_preload_page = null; |
175 | 175 | $all_values_for_template = array(); |
176 | | - // replace HTML-encoded representations of curly brackets with actual |
177 | | - // curly brackets - this is a hack to allow for forms to include |
178 | | - // templates that themselves contain form elements - the escaping is |
179 | | - // needed to make sure that those elements don't get parsed too early |
180 | | - $form_def = str_replace(array('{', '}'), array('{', '}'), $form_def); |
| 176 | + // unencode and HTML-encoded representations of curly brackets and |
| 177 | + // pipes - this is a hack to allow for forms to include templates |
| 178 | + // that themselves contain form elements - the escaping is needed |
| 179 | + // to make sure that those elements don't get parsed too early |
| 180 | + $form_def = str_replace(array('{', '|', '}'), array('{', '|', '}'), $form_def); |
181 | 181 | while ($brackets_loc = strpos($form_def, "{{{", $start_position)) { |
182 | 182 | $brackets_end_loc = strpos($form_def, "}}}", $brackets_loc); |
183 | 183 | $bracketed_string = substr($form_def, $brackets_loc + 3, $brackets_end_loc - ($brackets_loc + 3)); |