public class ImgTagReplacer extends java.lang.Object implements Replacer
Replacer
is that the ChatPanel does not support <img /> tags
(XHTML syntax). Thus, we remove every slash from each <img /> and close
it with a separate closing tag.Constructor and Description |
---|
ImgTagReplacer() |
Modifier and Type | Method and Description |
---|---|
boolean |
expectsPlainText()
Img tag replacer expects HTML content.
|
void |
replace(java.lang.StringBuilder target,
java.lang.String piece)
Replace operation that replaces img tags that immediately close.
|
public boolean expectsPlainText()
expectsPlainText
in interface Replacer
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.