I am working with an existing framework where I have to set a certain attribute to blank if some conditions are satisfied. Unfortunately, the framework doesn't allow setting only whitespace to the attribute value. Specifically, it does a
!(org.apache.commons.lang.StringUtils.isBlank(value))
check on the value
Is it possible to somehow bypass this and set a value that looks blank/invisible to the eye but is not regarded as whitespace?
I am using a dash "-" right now, but I think it would be interesting to know if it's possible.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…