当前位置:网站首页>VII Practice -- some methods of common tools
VII Practice -- some methods of common tools
2022-07-21 18:09:00 【Is this not more popular than Bo people?】
- StringUtils.isNotBlank( Parameters ): Determine whether a string is not empty and its length is not 0 And not by whitespace (whitespace) constitute , be equal to !isBlank(String str)
- Jsoup.clean(news1.getNewsContent(), Safelist.none()): Parameters 2 Fix ,Whitelist whitelist Parameter method is deprecated , Now it is replaced by this . This method is right HTML Tag to filter , Specific filtering rules , see Safelist Which method the class calls .
- none()
The API Will clear all HTML label , Keep only text nodes .- simpleText()
The API Will only be retained b, em, i, strong, u label , All but that HTML The tags will be removed .- basic()
The API Will retain a, b, blockquote, br, cite, code, dd, dl, dt, em, i, li, ol, p, pre, q, small, span, strike, strong, sub, sup, u, ul And its appropriate attribute tag , All but that HTML The tags will be removed , And the API Pictures are not allowed (img tag). In addition, the API Hyperlinks that are allowed to appear in the http, https, ftp, mailto And in the hyperlink mandatory addition rel=nofollow attribute .- basicWithImages()
The API In the reserved basic() Allow pictures as well as labels in (img tag) and img The relevant appropriate properties of , And its src Allow it to specify http or https.- relaxed()
The API Will only be retained a, b, blockquote, br, caption, cite, code, col, colgroup, dd, div, dl, dt, em, h1, h2, h3, h4, h5, h6, i, img, li, ol, p, pre, q, small, span, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, u, ul label , All but that HTML The tags will be removed , And there is no mandatory append in hyperlinks rel=nofollow attribute .
边栏推荐
- Kali carries out ARP network disconnection attack
- 关于项目编译工具ninja、make、cmake的区别与优劣
- win10桌面右下角网络图标中找不到网络
- 科软 信息安全 期末考试回忆
- Have you stepped on the eight most common SQL grammars at work?
- PKI证书体系
- Mongodb tutorial Chapter 07 crud search document
- map遍历
- 史上最全的mysql数据类型汇总(下)
- In the available fields list of s/4hana extended fields, what should I do if I can't see the extended fields I created
猜你喜欢
Ue4gameplay framework
[CS231N]Notes_ 1-Introduction
冒号用法 视频41 13.3. 目标检测和边界框 QA 13.4锚框
小程序的破局之道,数字化营销已然成为趋势
“为了买台手机,研究大半个月后仍然无从选择”
leetcode:1125. The smallest necessary team [shape pressing DP board + set covering board]
Explain cache penetration, cache avalanche, cache breakdown
Simple understanding -- JVM
掌握 Dowanward API 的妙用,轻松拿捏 kubernetes 环境变量
How to use sketch to design web pages and create grid guides tutorial
随机推荐
狂神redis笔记05
[test development] software testing - Test Case Design & detailed explanation of test classification
Mobilevit: challenge the end-to-side overlord of mobilenet
图片、视频修复并超分 - Real-ESRGAN项目使用(一) | 机器学习
WEB3.0+DAO大势所趋,SAFE开创新世界
CentOS7安装mysql兼容性问题
leetcode:1125. 最小的必要团队【状压dp板子 + 集合覆盖板子】
掌握 Dowanward API 的妙用,轻松拿捏 kubernetes 环境变量
C language compilation
简单了解---JVM
vim 编辑器学习笔记
游戏心理学
Summary of the most complete MySQL data types in history (Part 2)
leetcode:1125. The smallest necessary team [shape pressing DP board + set covering board]
Code simulation
js图表蒸发量降水量平均温度关系图展示
一条 shell 命令的阻塞与唤醒
@The difference between document annotation and Lombok
[BJDCTF2020]EasySearch-1
Memories of the final examination of information security of the Department of software