This is a continuation of HTML tags are getting converted
When I try to the following
ByteArrayOutputStream stream= new ByteArrayOutputStream();
stream= stream.toString().replaceAll("<","<");
I am getting
incompatible types; found: class java.lang.String, required: class java.io.ByteArrayOutputStream
How can I replace <
with <
As mentioned in the other question, my HTML tags are getting converted and due to this reason before I print to open the HTML page, I would like to convert < to < if it exist in the stream.
Kindly suggest the reason for down voting as it makes sense rather than down voting for the sake of it.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…