我需要在我的 Swift 应用程序中创建一个阅读器功能。我将收到这样的 HTML 文本(带有 json 请求):
<h5 align="LEFT" class="western" style="font-weight: normal;"> </h5>
<font size="3"><h5 align="LEFT" class="western" style="font-weight: normal;">
Albert Einstein publie en 1905, une nouvelle théorie connue sous le nom de relativité restreinte. </h5>
<h5 align="LEFT" class="western" style="font-weight: normal;"></h5>
<h5 align="LEFT" style="font-weight: normal;"><font color="#339933">►</font>
<font size="3">Postulat 1 :</font>
</h5><h5 align="LEFT" class="western" style="font-weight: normal;">
</h5>
我想以具有所有属性的可读文本显示它,我不想丢失样式,因为我可以使用 HTMLReader。
你知道用 Swift 制作它的方法吗?