-----------------------------------
| This is a long text that cannot | automatically wrap
| |
| |
-----------------------------------
<svgxmlns="http://www.w3.org/2000/svg"width="300"height="200"><g><rectwidth="200"height="100"fill="lightgray"/><textx="10"y="20"font-size="12"fill="black"> This is a long text that cannot automatically wrap within the rectangle.
</text></g></svg>
-----------------------------------
| This is a long text that |
| cannot automatically wrap |
| within the rectangle. |
-----------------------------------
<svgxmlns="http://www.w3.org/2000/svg"width="300"height="200"><g><rectwidth="200"height="100"fill="lightgray"/><textx="10"y="20"font-size="12"fill="black"><tspanx="10"dy="1.2em">This is a long text that</tspan><tspanx="10"dy="1.2em">cannot automatically wrap </tspan><tspanx="10"dy="1.2em">within the rectangle.</tspan></text></g></svg>
-----------------------------------
| This is a long text that |
| will automatically wrap |
| within the rectangle. |
-----------------------------------
<svgxmlns="http://www.w3.org/2000/svg"width="300"height="200"><g><rectwidth="200"height="100"fill="lightgray"/><foreignObjectx="10"width="180"height="80"><divxmlns="http://www.w3.org/1999/xhtml"><p>This is a long text that will automatically wrap within the rectangle.</p></div></foreignObject></g></svg>
-----------------------------------------------------
| This is a long text that will automatically wrap |
| within the rectangle. |
-----------------------------------------------------
<svgxmlns:xlink="http://www.w3.org/1999/xlink"version="1.1"width="263px"height="103px"viewBox="-0.5 -0.5 263 103"><defs></defs><g><rectx="1"y="1"width="260"height="100"fill="#ffffff"stroke="#000000"pointer-events="all"></rect><gtransform="translate(-0.5 -0.5)"><switch><foreignObjectstyle="overflow: visible; text-align: left;"pointer-events="none"width="100%"height="100%"requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><divstyle="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 258px; height: 1px; padding-top: 51px; margin-left: 2px;"><divstyle="box-sizing: border-box; font-size: 0; text-align: center; "><divstyle="display: inline-block; font-size: 12px; font-family: Helvetica; color: #000000; line-height: 1.2; pointer-events: all; white-space: normal; word-wrap: normal; "><div><span> This is a long text that will automatically wrap within the rectangle.
</span></div></div></div></div></foreignObject><textx="131"y="55"fill="#000000"font-family="Helvetica"font-size="12px"text-anchor="middle"> This is a long text that will automatically...
</text></switch></g></g><switch><grequiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"></g><atransform="translate(0,-5)"xlink:href="https://desk.draw.io/support/solutions/articles/16000042487"target="_blank"><texttext-anchor="middle"font-size="10px"x="50%"y="100%"> Viewer does not support full SVG 1.1
</text></a></switch></svg>