解释字符串中的HTML标记并相应地编辑字符串中的文本

时间:2017-02-21 16:58:01

标签: c# html xamarin

我正在开发一个Xamarin应用程序,我在字符串中有以下文本。我试图在C#中找到一种方法,在标签中显示此文本,并在标题中显示文字Bold(如果HTML标记为u,则加下划线或如果i标记为斜体)。

<b>What is Lorem Ipsum?</b>

Lorem Ipsum is simply dummy text of the printing and typesetting industry.      
Lorem Ipsum has been the industry's standard dummy text ever since the 
1500s, when an unknown printer took a galley of type and scrambled it to 
make a type specimen book.

<b>Where does it come from?</b>

Contrary to popular belief, Lorem Ipsum is not simply random text. It has    
roots in a piece of classical Latin literature from 45 BC, making it over 
2000 years old.

© help@lipsum.com

0 个答案:

没有答案