java加粗的转义字符
时间: 2023-10-17 16:01:02 浏览: 162
在Java中,如果你要对文本进行加粗处理,你可以使用HTML标记语言的加粗标签 <b>。为了在Java中转义这个字符,你可以使用StringEscapeUtils类的escapeHtml4方法将<b>转义为<b>。这样就可以在Java中正确地表示加粗的文本了。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [Java转义工具类StringEscapeUtils的学习笔记](https://blog.csdn.net/weixin_45866849/article/details/126698077)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
- *3* [HTML(二) 概述+常用标签+转义字符](https://blog.csdn.net/weixin_51075988/article/details/112252766)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文