jin-yufeng / mp-html

小程序富文本组件,支持渲染和编辑 html,支持在微信、QQ、百度、支付宝、头条和 uni-app 平台使用
https://jin-yufeng.gitee.io/mp-html
MIT License
3.26k stars 479 forks source link

uniapp中无法正常显示svg #505

Closed lululu222 closed 1 year ago

lululu222 commented 1 year ago

填充内容如下

如果<svg xmlns="http://www.w3.org/2000/svg" class="w67902196596s" fill-rule="evenodd" preserveaspectratio="none" stroke-linecap="round" style="height:16.65pt;width:65.4pt;" viewbox="0 0 2080 512">   <style type="text/css"> .w67902196596s .brush0 { fill: rgb(255,255,255); } .w67902196596s .pen0 { stroke: rgb(0,0,0); stroke-width: 1; stroke-linejoin: round; } .w67902196596s .font0 { font-size: 406px; font-family: "Times New Roman", serif; } .w67902196596s .font1 { font-style: italic; font-size: 406px; font-family: "Times New Roman", serif; } .w67902196596s .font2 { font-size: 373px; font-family: Symbol, serif; } .w67902196596s .font3 { font-weight: bold; font-size: 76px; font-family: System, sans-serif; } </style> <g>   <text class="font0" x="316 712 1480 1876" y="352">   ()()  </text>   <text class="font1" x="70 484 1234 1630" y="352">   PAPB  </text>   <text class="font2" x="922" y="352">   £  </text>   </g>  </svg> ,则一定有<svg xmlns="http://www.w3.org/2000/svg" class="w67902196576s" fill-rule="evenodd" preserveaspectratio="none" stroke-linecap="round" style="height:15.1pt;width:33.7pt;" viewbox="0 0 1088 480">   <style type="text/css"> .w67902196576s .brush0 { fill: rgb(255,255,255); } .w67902196576s .pen0 { stroke: rgb(0,0,0); stroke-width: 1; stroke-linejoin: round; } .w67902196576s .font0 { font-style: italic; font-size: 406px; font-family: "Times New Roman", serif; } .w67902196576s .font1 { font-size: 373px; font-family: Symbol, serif; } .w67902196576s .font2 { font-weight: bold; font-size: 76px; font-family: System, sans-serif; } </style> <g>   <text class="font0" x="88 772" y="352">   AB  </text>   <text class="font1" x="394" y="352">   Í  </text>   </g>  </svg> . ( )

发现直接漏掉了svg image