internet explorer - SVG text element with whitespace not preserved in IE -
i want preserve white space in single svg < text> element.
this works fine xml:space="preserve" attribute in text element in ie browser.
<text x="0" y="15" fill="red" xml:space="preserve">i love svg!</text>
here jsfiddle, try open fiddle in chrome/firefox , in latest ie, notice whitespace in text element text not preserved in ie.
any workaround works in ie well?
i guess replace each space  
(that's unicode non-breaking space character).
in javascript written \u00a0 though.
Comments
Post a Comment