I want to send an e-mail from our system to customers, where some tags should be hidden to them. I\'ve set the following CSS:
.hidden { display: none; }
how about remove the tags with "display:none;" with code.
i use string.split the html string String.split(" and StringBuilder sb.
then if-else. if the split string does not .contains("display:none;") then append to stringbuilder sb.append(String). make sure to put back the " , so sb.append(". u might want to exclude several split string, such as null split string,or which contains tags( ",
" ).