Pergunta de entrevista da empresa Speechify

Write a custom parser (without using DOMParser or built-in DOM libraries) to extract text solely from the (sentence) elements within an SSML string. Ensure it strips away all invalid or unrelated text wrapper data.