1
我有串中的一段,其中包含URL的話,以及, 像:如何創建超鏈接(<a></a>)在字符串中的一段,用Thymeleaf
「世界,你好,http://thymeleaf.org和https://google.com 歡迎你。「
同時生成PDF,那些2分網址的話應是超鏈接和文本的其餘部分應是純。
我有串中的一段,其中包含URL的話,以及, 像:如何創建超鏈接(<a></a>)在字符串中的一段,用Thymeleaf
「世界,你好,http://thymeleaf.org和https://google.com 歡迎你。「
同時生成PDF,那些2分網址的話應是超鏈接和文本的其餘部分應是純。
@ModelAttribute("paragrah")
public String getParagraph()
{
return "Hello world, <a href='http://thymeleaf.org'>http://thymeleaf.org</a> and <a href='https://google.com'>https://google.com</a> welcomes you.";
}
HTML