mg style="width:100%" src="${imageUrl}"/>
                        </tweet-component>
                    `

                return str
            }
        }

        function formatContent(content) {
                let formattedContent = content.replace(/"/g, '&quot;');

                // Replace single quotes with &#39;
                formattedContent = formattedContent.replace(/'/g, '&#39;');

                // Convert newlines to <br>
                formattedContent = formattedContent.replace(/\n/