<svg viewBox="0 0 300 300">
<!-- Use foreignObject to allow HTML content inside SVG -->
<foreignObject x="0" y="0" width="300" height="300">
<div class="text-container">
This text is inside a triangle and will be clipped to fit within its bounds. Adjust the content to make sure it fits well!
</div>
</foreignObject>
</svg>