pg_address: title: Address questions: - q_address cat_primary: title: Primary Questions pages: pg_fft: title: content: The **FFT** Question type: markdown questions: - content: q_fft - type: html content: And now: the <span>follow-up</span> question - q_fft_why cat_secondary: title: title: Secondary questions pages: pg_last: questions: - q_last EOT; $yaml_parser = new Parser(); $arr_questions = $yaml_parser->parse($questions); $arr_structure = $yaml_parser->parse($structure); var_dump(SC_Survey_Constructor::standardise($arr_questions), SC_Page_Generator::standardise($arr_structure));