Kotlin 科特林字符串替换

Kotlin 科特林字符串替换,kotlin,Kotlin,如何替换kotlin中的字符串?我这里有一个html字符串的例子 var test = "<html><body><p> just some test text</p> And i wanna use this text for texting and i ll show you this image https://www.instagram.com/p/B8I9_KiF45g/?utm_source=ig_web_copy_link also

如何替换kotlin中的字符串?我这里有一个html字符串的例子

var test = "<html><body><p> just some test text</p> And i wanna use this text for texting and i ll show you this image https://www.instagram.com/p/B8I9_KiF45g/?utm_source=ig_web_copy_link also this is the instagram photo with just normal link id body https://www.instagram.com/p/B8I3r66pVpp/ <h> random title text </h></body></html>"
var test=“只是一些测试文本

,我想用这个文本来发短信,我会给你看这个图片https://www.instagram.com/p/B8I9_KiF45g/?utm_source=ig_web_copy_link 另外,这是instagram照片,只有普通链接id主体https://www.instagram.com/p/B8I3r66pVpp/ “随机标题文本”
是否有选项仅在